XFree data returned by XineramaQueryScreens in get_screen_count(...)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Nikos Ntarmos 2008-01-11 14:52:39 +02:00 committed by Julien Danjou
parent a245b2c033
commit 860f811bb6
1 changed files with 1 additions and 1 deletions

View File

@ -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);