Author: everaldo
Date: 2007-06-08 21:44:39 -0400 (Fri, 08 Jun 2007)
New Revision: 79027

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/runtime.cpp
Log:
2007-06-08  Everaldo Canuto  <[EMAIL PROTECTED]>

        * runtime.cpp: In surface_destroy check for toplevel before unref
        it. 



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-09 01:06:21 UTC (rev 79026)
+++ trunk/moon/src/ChangeLog    2007-06-09 01:44:39 UTC (rev 79027)
@@ -1,3 +1,8 @@
+2007-06-08  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * runtime.cpp: In surface_destroy check for toplevel before unref
+       it. 
+
 2007-06-08  Chris Toshok  <[EMAIL PROTECTED]>
 
        * animation.h: remove the huge whitespace gap after KeyTime, and

Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp  2007-06-09 01:06:21 UTC (rev 79026)
+++ trunk/moon/src/runtime.cpp  2007-06-09 01:44:39 UTC (rev 79027)
@@ -784,7 +784,8 @@
 void 
 surface_destroy (Surface *s)
 {
-       base_unref (s->toplevel);
+       if (s->toplevel)
+               base_unref (s->toplevel);
 
        cairo_destroy (s->cairo_buffer);
        if (s->cairo_xlib)

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

Reply via email to