[Swfdec] src/plugin.c

Benjamin Otte company at kemper.freedesktop.org
Wed Nov 14 09:07:41 PST 2007


 src/plugin.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4b09885e60cc9b679eb9bb211af143cbcfc35244
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Nov 14 18:07:35 2007 +0100

    attempt to get rid of the warnings that sometimes show up when closing web pages

diff --git a/src/plugin.c b/src/plugin.c
index 258307c..8d316f9 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -260,7 +260,9 @@ plugin_destroy (NPP instance, NPSavedData **save)
   if (instance == NULL || !SWFMOZ_IS_PLAYER (instance->pdata))
     return NPERR_INVALID_INSTANCE_ERROR;
 
+  plugin_x11_teardown (instance->pdata);
   swfmoz_player_remove (instance->pdata);
+  instance->pdata = NULL;
   return NPERR_NO_ERROR;
 }
 


More information about the Swfdec mailing list