[vlc-devel] commit: Delete arrays ith delete[] and fix memleak. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Aug 19 23:48:18 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Aug 19 23:09:03 2008 +0200| [9779b8cdbd6276283e16d69da13e88f9bbc8cc54] | committer: Rémi Duraffort
Delete arrays ith delete[] and fix memleak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9779b8cdbd6276283e16d69da13e88f9bbc8cc54
---
projects/mozilla/vlcplugin.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index bd9adc0..e1bd8ef 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -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;
More information about the vlc-devel
mailing list