Fix memory leak.
svn path=/trunk/KDE/kdebase/workspace/; revision=804132
This commit is contained in:
parent
aa6c0d74da
commit
4851bff561
1 changed files with 3 additions and 1 deletions
|
@ -725,7 +725,7 @@ bool Workspace::keepTransientAbove( const Client* mainwindow, const Client* tran
|
||||||
ToplevelList Workspace::rootStackingOrder() const
|
ToplevelList Workspace::rootStackingOrder() const
|
||||||
{
|
{
|
||||||
Window dummy;
|
Window dummy;
|
||||||
Window* windows;
|
Window* windows = NULL;
|
||||||
unsigned int count = 0;
|
unsigned int count = 0;
|
||||||
XQueryTree( display(), rootWindow(), &dummy, &dummy, &windows, &count );
|
XQueryTree( display(), rootWindow(), &dummy, &dummy, &windows, &count );
|
||||||
ToplevelList ret;
|
ToplevelList ret;
|
||||||
|
@ -740,6 +740,8 @@ ToplevelList Workspace::rootStackingOrder() const
|
||||||
}
|
}
|
||||||
foreach( Deleted* c, deleted )
|
foreach( Deleted* c, deleted )
|
||||||
ret.append( c );
|
ret.append( c );
|
||||||
|
if( windows != NULL )
|
||||||
|
XFree( windows );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue