[vlc-devel] commit: mozilla plugin: fix a potential memleak. ( Rémi Duraffort )

git version control git at videolan.org
Mon Aug 17 14:36:03 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Aug  3 18:15:05 2009 +0200| [7dfd525e9fee06aab39a3707245d4e2ff96592f7] | committer: Rémi Duraffort 

mozilla plugin: fix a potential memleak.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7dfd525e9fee06aab39a3707245d4e2ff96592f7
---

 projects/mozilla/vlcplugin.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 5f4444b..80ddbd5 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -147,6 +147,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
         }
         else if( !strcmp( argn[i], "text" ) )
         {
+            free( psz_text );
             psz_text = strdup( argv[i] );
         }
         else if( !strcmp( argn[i], "autoplay")




More information about the vlc-devel mailing list