]> Dogcows Code - chaz/openbox/blobdiff - otk/widget.cc
add some tests
[chaz/openbox] / otk / widget.cc
index c3e17cbe5a181cdcefd8bd97b7c6cceb771348be..9708977d47732ffa03f674eb06c25fa78cf63c1e 100644 (file)
@@ -277,7 +277,8 @@ void Widget::render(void)
 
   XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap());
 
-  delete s; // delete the old surface *after* its pixmap isn't in use anymore
+  if (s)
+    delete s; // delete the old surface *after* its pixmap isn't in use anymore
 }
 
 void Widget::adjust(void)
This page took 0.023798 seconds and 4 git commands to generate.