mirror of https://code.videolan.org/videolan/vlc
Delete arrays ith delete[] and fix memleak.
This commit is contained in:
parent
f99b51c5b9
commit
9779b8cdbd
|
@ -246,7 +246,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
|
|||
|
||||
VlcPlugin::~VlcPlugin()
|
||||
{
|
||||
delete psz_baseURL;
|
||||
delete[] psz_baseURL;
|
||||
delete psz_target;
|
||||
if( libvlc_log )
|
||||
libvlc_log_close(libvlc_log, NULL);
|
||||
|
@ -340,6 +340,7 @@ relativeurl:
|
|||
if( '/' != *href )
|
||||
{
|
||||
/* baseURL is not an absolute path */
|
||||
delete[] href;
|
||||
return NULL;
|
||||
}
|
||||
pathstart = href;
|
||||
|
|
Loading…
Reference in New Issue