XFree data returned by XineramaQueryScreens in get_screen_count(...)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a245b2c033
commit
860f811bb6
2
screen.c
2
screen.c
|
@ -161,7 +161,7 @@ get_screen_count(void)
|
||||||
int screen_number;
|
int screen_number;
|
||||||
|
|
||||||
if(XineramaIsActive(globalconf.display))
|
if(XineramaIsActive(globalconf.display))
|
||||||
XineramaQueryScreens(globalconf.display, &screen_number);
|
XFree(XineramaQueryScreens(globalconf.display, &screen_number));
|
||||||
else
|
else
|
||||||
screen_number = ScreenCount(globalconf.display);
|
screen_number = ScreenCount(globalconf.display);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue