From 7dfd525e9fee06aab39a3707245d4e2ff96592f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 3 Aug 2009 18:15:05 +0200 Subject: [PATCH] mozilla plugin: fix a potential memleak. --- projects/mozilla/vlcplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index 5f4444bb4a..80ddbd57fc 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") -- 2.39.5