Fix some memory leaks.
svn path=/branches/work/kwin_composite/; revision=633714
This commit is contained in:
parent
8299541652
commit
6909f8a678
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue