]> Dogcows Code - chaz/openbox/commitdiff
reorder how theyre destroyed, probably doesnt matter anyways.
authorDana Jansens <danakj@orodu.net>
Sat, 18 Jan 2003 07:25:00 +0000 (07:25 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 18 Jan 2003 07:25:00 +0000 (07:25 +0000)
otk/surface.cc

index c02526f30644485edca8105e01f4146fd0840397..6cc453d4d2dac5b219df780d82c925915a549683 100644 (file)
@@ -58,17 +58,17 @@ void Surface::destroyObjects()
 {
   assert(_im); assert(_pm != None); assert(_xftdraw);
 
+  XftDrawDestroy(_xftdraw);
+  _xftdraw = 0;
+
+  XFreePixmap(**display, _pm);
+  _pm = None;
+
   // do the delete ourselves cuz we alloc it with new not malloc
   delete [] _im->data;
   _im->data = NULL;
   XDestroyImage(_im);
   _im = 0;
-
-  XFreePixmap(**display, _pm);
-  _pm = None;
-
-  XftDrawDestroy(_xftdraw);
-  _xftdraw = 0;
 }
 
 void Surface::setSize(int w, int h)
This page took 0.023686 seconds and 4 git commands to generate.