Commit 7dfd525e authored by Rémi Duraffort's avatar Rémi Duraffort

mozilla plugin: fix a potential memleak.

parent 8d54feef
...@@ -147,6 +147,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) ...@@ -147,6 +147,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
} }
else if( !strcmp( argn[i], "text" ) ) else if( !strcmp( argn[i], "text" ) )
{ {
free( psz_text );
psz_text = strdup( argv[i] ); psz_text = strdup( argv[i] );
} }
else if( !strcmp( argn[i], "autoplay") else if( !strcmp( argn[i], "autoplay")
......
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