]> git.sesse.net Git - vlc/commitdiff
mozilla: do not ship gui/macosx plugin in Safari webplugin
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 14 Jul 2009 09:22:37 +0000 (11:22 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 24 Jul 2009 12:26:28 +0000 (14:26 +0200)
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.

Makefile.am

index f3ad1e465d0ecc1eea1eddc16af1504667ff0256..5e96041ed1ef0ce4f0f7e7fc47baf22bd9b79b5c 100644 (file)
@@ -1116,6 +1116,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"
        export PACKAGEMAKER=