Commit 9779b8cd authored by Rémi Duraffort's avatar Rémi Duraffort

Delete arrays ith delete[] and fix memleak.

parent f99b51c5
...@@ -246,7 +246,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) ...@@ -246,7 +246,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
VlcPlugin::~VlcPlugin() VlcPlugin::~VlcPlugin()
{ {
delete psz_baseURL; delete[] psz_baseURL;
delete psz_target; delete psz_target;
if( libvlc_log ) if( libvlc_log )
libvlc_log_close(libvlc_log, NULL); libvlc_log_close(libvlc_log, NULL);
...@@ -340,6 +340,7 @@ relativeurl: ...@@ -340,6 +340,7 @@ relativeurl:
if( '/' != *href ) if( '/' != *href )
{ {
/* baseURL is not an absolute path */ /* baseURL is not an absolute path */
delete[] href;
return NULL; return NULL;
} }
pathstart = href; pathstart = href;
......
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