From 6909f8a678f01ffa05d2fed77a27330314a9fa57 Mon Sep 17 00:00:00 2001 From: Philip Falkner Date: Wed, 14 Feb 2007 23:37:13 +0000 Subject: [PATCH] Fix some memory leaks. svn path=/branches/work/kwin_composite/; revision=633714 --- composite.cpp | 2 ++ deleted.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/composite.cpp b/composite.cpp index 126fb325b5..68dc87690f 100644 --- a/composite.cpp +++ b/composite.cpp @@ -242,6 +242,8 @@ void Workspace::performCompositing() } foreach( Deleted* c, deleted ) // TODO remember stacking order somehow windows.append( c ); + if( children != NULL ) + XFree( children ); foreach( Toplevel* c, windows ) { // this could be possibly optimized WRT obscuring, but that'd need being already // past prePaint() phase - probably not worth it diff --git a/deleted.cpp b/deleted.cpp index f7d21dedd3..011e65c878 100644 --- a/deleted.cpp +++ b/deleted.cpp @@ -26,6 +26,7 @@ Deleted::~Deleted() { assert( delete_refcount == 0 ); workspace()->removeDeleted( this, Allowed ); + delete effectWindow(); } Deleted* Deleted::create( Toplevel* c )