[vlc-devel] commit: mozilla: do not ship gui/macosx plugin in Safari webplugin ( Jean-Paul Saman )

git version control git at videolan.org
Fri Jul 24 15:06:24 CEST 2009

vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Tue Jul 14 11:22:37 2009 +0200| [46d0b083fa0da57054c20ab370190d13be165a1f] | committer: Jean-Paul Saman 

mozilla: do not ship gui/macosx plugin in Safari webplugin

It is the main cause for memory leaks of VLC browser plugin for MacOS X. Every time the browser plugin is reloaded, vlc core reloads the plugins which causes all global defined objects to initialize. Since there are objects in libmacosx_plugin.dylib that are supposed to live as long as the application these are never freed. Testing is done with --enable-debug.
(cherry picked from commit 4a60f8935ef0e53af2104ece83358b2097002f02)

Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46d0b083fa0da57054c20ab370190d13be165a1f

 Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 83891c3..65fff17 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1121,6 +1121,7 @@ if BUILD_MOZILLA
 # Create Installer
 	rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
 	mkdir -p "$(top_builddir)/macosx-plugin-instdata"
+	rm -f "$(top_builddir)/projects/mozilla/VLC Plugin.plugin/Contents/MacOS/modules/libmacosx_plugin.dylib" 
 	cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
 	rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"

More information about the vlc-devel mailing list