diff -rupN orig/compiz-0.9.4+bzr20110407/src/screen.cpp patch/compiz-0.9.4+bzr20110407/src/screen.cpp --- orig/compiz-0.9.4+bzr20110407/src/screen.cpp 2011-04-07 08:44:00.000000000 -0400 +++ patch/compiz-0.9.4+bzr20110407/src/screen.cpp 2011-04-10 20:37:38.301787634 -0400 @@ -665,6 +665,11 @@ PrivateScreen::syncStacks () screen->insertWindow (w, screen->windows ().size () ? screen->windows ().back ()->id () : 0); + if(children != NULL) + { + XFree(children); + } + return true; }