reorder how theyre destroyed, probably doesnt matter anyways.
This commit is contained in:
parent
9b6e5f9cf4
commit
6871cff3fa
1 changed files with 6 additions and 6 deletions
|
@ -58,17 +58,17 @@ void Surface::destroyObjects()
|
||||||
{
|
{
|
||||||
assert(_im); assert(_pm != None); assert(_xftdraw);
|
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
|
// do the delete ourselves cuz we alloc it with new not malloc
|
||||||
delete [] _im->data;
|
delete [] _im->data;
|
||||||
_im->data = NULL;
|
_im->data = NULL;
|
||||||
XDestroyImage(_im);
|
XDestroyImage(_im);
|
||||||
_im = 0;
|
_im = 0;
|
||||||
|
|
||||||
XFreePixmap(**display, _pm);
|
|
||||||
_pm = None;
|
|
||||||
|
|
||||||
XftDrawDestroy(_xftdraw);
|
|
||||||
_xftdraw = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Surface::setSize(int w, int h)
|
void Surface::setSize(int w, int h)
|
||||||
|
|
Loading…
Reference in a new issue