Author: everaldo
Date: 2007-06-03 22:36:04 -0400 (Sun, 03 Jun 2007)
New Revision: 78524

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/moon-plugin.cpp
   trunk/moon/plugin/moon-plugin.h
Log:
        * moon-plugin.c: Destroy objects on class destructor to prevent browser
        crashes.

2007-06-03  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-04 02:23:33 UTC (rev 78523)
+++ trunk/moon/plugin/ChangeLog 2007-06-04 02:36:04 UTC (rev 78524)
@@ -1,5 +1,10 @@
 2007-06-03  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * moon-plugin.c: Destroy objects on class destructor to prevent browser
+       crashes.
+
+2007-06-03  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        [Clean up demo and make some class fields private ]
 
        * moon-plugin-glue.c,

Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp   2007-06-04 02:23:33 UTC (rev 78523)
+++ trunk/moon/plugin/moon-plugin.cpp   2007-06-04 02:36:04 UTC (rev 78524)
@@ -108,6 +108,11 @@
 
 PluginInstance::~PluginInstance ()
 {
+       if (this->container != NULL)
+               gtk_widget_destroy (this->container);
+
+       if (this->surface != NULL)
+               surface_destroy (this->surface);
 }
 
 NPError 

Modified: trunk/moon/plugin/moon-plugin.h
===================================================================
--- trunk/moon/plugin/moon-plugin.h     2007-06-04 02:23:33 UTC (rev 78523)
+++ trunk/moon/plugin/moon-plugin.h     2007-06-04 02:36:04 UTC (rev 78524)
@@ -50,7 +50,7 @@
        NPWindow *window;      // Mozilla window object
        NPP instance;          // Mozilla instance object
        bool xembed_supported; // XEmbed Extension supported
-
+ 
  public:       
        PluginInstance (NPP instance, uint16 mode);
        ~PluginInstance ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to