[vlc-devel] commit: mozilla: fix small memory leak (Jean-Paul Saman )
git version control
git at videolan.org
Sun Jun 14 20:09:09 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Mon Jun 1 16:08:40 2009 +0200| [63ae92da20faa6dafa8fa4dc808bb27ad2bcb455] | committer: Jean-Paul Saman
mozilla: fix small memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=63ae92da20faa6dafa8fa4dc808bb27ad2bcb455
---
projects/mozilla/control/npolibvlc.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/projects/mozilla/control/npolibvlc.cpp b/projects/mozilla/control/npolibvlc.cpp
index f428187..c2a40f4 100644
--- a/projects/mozilla/control/npolibvlc.cpp
+++ b/projects/mozilla/control/npolibvlc.cpp
@@ -966,7 +966,7 @@ void LibvlcPlaylistNPObject::parseOptions(const NPString &nps,
if( ! moreOptions )
{
/* failed to allocate more memory */
- free(s);
+ free(s);
/* return what we got so far */
*i_options = nOptions;
*ppsz_options = options;
@@ -1043,6 +1043,7 @@ void LibvlcPlaylistNPObject::parseOptions(NPObject *obj, int *i_options,
}
options[nOptions++] = stringValue(value);
+ NPN_ReleaseVariantValue(&value);
}
*i_options = nOptions;
*ppsz_options = options;
More information about the vlc-devel
mailing list