Delete arrays ith delete[] and fix memleak.

This commit is contained in:
Rémi Duraffort 2008-08-19 23:09:03 +02:00
parent f99b51c5b9
commit 9779b8cdbd
1 changed files with 2 additions and 1 deletions

View File

@ -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;