Commit f4fef7ff authored by Jean-Paul Saman's avatar Jean-Paul Saman
Browse files

mozilla: fix small memory leak

(cherry picked from commit 63ae92da20faa6dafa8fa4dc808bb27ad2bcb455)
parent b95873c5
......@@ -1008,7 +1008,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;
......@@ -1085,6 +1085,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