Skip Menu |

This queue is for tickets about the X11-IdleTime CPAN distribution.

Report information
The Basics
Id: 7824
Status: resolved
Priority: 0/
Queue: X11-IdleTime

People
Owner: Nobody in particular
Requestors: r [...] orcafat.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: Doesn't deallocate X resources
X11-IdleTime-0.01,perl, v5.8.4, Debian. When running GetIdleTime in a loop, it will allocate all Xresources ending up in: Xlib:Maximum number of clients reached Attached patch fixes this problem by deallocating the resources used by GetIdleTime.
*** X11-IdleTime-0.01/IdleTime.pm 2003-02-08 06:22:42.000000000 +0100 --- IdleTime.pm 2004-09-30 11:58:29.000000000 +0200 *************** *** 67,71 **** --- 67,73 ---- screen = DefaultScreen(display); XScreenSaverQueryInfo(display, RootWindow(display,screen), mit_info); idle_time = (mit_info->idle) / 1000; + XFree(mit_info); + XCloseDisplay(display); return idle_time; }
This bug has been fixed and new version released nearly 2 years ago. Latest version: http://search.cpan.org/~AWENDT/X11-IdleTime-0.4/