]> Dogcows Code - chaz/openbox/commitdiff
check before deleting
authorDana Jansens <danakj@orodu.net>
Sun, 2 Feb 2003 22:40:20 +0000 (22:40 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 2 Feb 2003 22:40:20 +0000 (22:40 +0000)
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.025679 seconds and 4 git commands to generate.