Commit 63ae92da authored by Jean-Paul Saman's avatar Jean-Paul Saman

mozilla: fix small memory leak

parent 100c91e7
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment