|
@@ -131,6 +131,7 @@ void slop::XEngine::selectAllInputs( Window win, long event_mask) {
|
131
|
131
|
XSelectInput( m_display, children[ i ], event_mask );
|
132
|
132
|
selectAllInputs( children[ i ], event_mask );
|
133
|
133
|
}
|
|
134
|
+ free( children );
|
134
|
135
|
}
|
135
|
136
|
|
136
|
137
|
// Grabs the cursor, be wary that setCursor changes the mouse masks.
|
|
@@ -308,12 +309,14 @@ void slop::WindowRectangle::setGeometry( Window win, bool decorations ) {
|
308
|
309
|
// Try to find the actual decorations.
|
309
|
310
|
test = win;
|
310
|
311
|
int status = XQueryTree( xengine->m_display, test, &root, &parent, &childlist, &ujunk);
|
|
312
|
+ free( childlist );
|
311
|
313
|
while( parent != root ) {
|
312
|
314
|
if ( !parent || !status ) {
|
313
|
315
|
break;
|
314
|
316
|
}
|
315
|
317
|
test = parent;
|
316
|
318
|
status = XQueryTree( xengine->m_display, test, &root, &parent, &childlist, &ujunk);
|
|
319
|
+ free( childlist );
|
317
|
320
|
}
|
318
|
321
|
// Once found, proceed normally.
|
319
|
322
|
if ( test && parent == root && status ) {
|