diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-18 07:25:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-18 07:25:00 +0000 |
| commit | 6871cff3face4486055444a6c6218a552ddad461 (patch) | |
| tree | 248cd0f1bbd457689606e4d07ee9c9de44b3177a /otk/surface.cc | |
| parent | 9b6e5f9cf49df78be25720f9c4b33a733b856c9b (diff) | |
reorder how theyre destroyed, probably doesnt matter anyways.
Diffstat (limited to 'otk/surface.cc')
| -rw-r--r-- | otk/surface.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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) |
