Fix some memory leaks.

svn path=/branches/work/kwin_composite/; revision=633714
This commit is contained in:
Philip Falkner 2007-02-14 23:37:13 +00:00
parent 8299541652
commit 6909f8a678
2 changed files with 3 additions and 0 deletions

View file

@ -242,6 +242,8 @@ void Workspace::performCompositing()
} }
foreach( Deleted* c, deleted ) // TODO remember stacking order somehow foreach( Deleted* c, deleted ) // TODO remember stacking order somehow
windows.append( c ); windows.append( c );
if( children != NULL )
XFree( children );
foreach( Toplevel* c, windows ) foreach( Toplevel* c, windows )
{ // this could be possibly optimized WRT obscuring, but that'd need being already { // this could be possibly optimized WRT obscuring, but that'd need being already
// past prePaint() phase - probably not worth it // past prePaint() phase - probably not worth it

View file

@ -26,6 +26,7 @@ Deleted::~Deleted()
{ {
assert( delete_refcount == 0 ); assert( delete_refcount == 0 );
workspace()->removeDeleted( this, Allowed ); workspace()->removeDeleted( this, Allowed );
delete effectWindow();
} }
Deleted* Deleted::create( Toplevel* c ) Deleted* Deleted::create( Toplevel* c )