mirror of https://github.com/0intro/wmii
Fix Xinerama memory leak
This commit is contained in:
parent
164a2a033c
commit
cd233229cf
|
@ -148,6 +148,7 @@ xinerama_screens(int *np) {
|
|||
rects[i].max.x = res[i].x_org + res[i].width;
|
||||
rects[i].max.y = res[i].y_org + res[i].height;
|
||||
}
|
||||
XFree(res);
|
||||
|
||||
*np = n;
|
||||
return rects;
|
||||
|
|
Loading…
Reference in New Issue