From: Dana Jansens Date: Sat, 18 Jan 2003 07:25:00 +0000 (+0000) Subject: reorder how theyre destroyed, probably doesnt matter anyways. X-Git-Tag: openbox-2_3_0~291 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6871cff3face4486055444a6c6218a552ddad461;p=dana%2Fopenbox.git reorder how theyre destroyed, probably doesnt matter anyways. --- diff --git a/otk/surface.cc b/otk/surface.cc index c02526f3..6cc453d4 100644 --- a/otk/surface.cc +++ b/otk/surface.cc @@ -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)