]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
added -doc package
[wxWidgets.git] / src / gtk1 / window.cpp
index 13b9e503133d1e49c1c085b8d2003d7bf30a7294..5e09f6f528311003e350e0ab6d8b067d4b9d6544 100644 (file)
@@ -2147,7 +2147,10 @@ wxWindow::~wxWindow()
 
     if (m_widgetStyle)
     {
-        gtk_style_unref( m_widgetStyle );
+        // don't delete if it's a pixmap theme style
+        if (!m_widgetStyle->engine_data)
+            gtk_style_unref( m_widgetStyle );
+            
         m_widgetStyle = (GtkStyle*) NULL;
     }