From 9212e07af155dbfd2df9174a07c557c37f43c639 Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 8 Apr 2001 23:05:54 +0000 Subject: (clean_up): destroys resources stored in screens (init_rat_cursor): frees the pixmaps --- ChangeLog | 5 +++++ src/main.c | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6a6b69b..f3508ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-04-08 shawn + + * src/main.c (clean_up): destroys resources stored in screens + (init_rat_cursor): frees the pixmaps + 2001-04-06 shawn * src/split.h (hide_frame_indicator): new prototype diff --git a/src/main.c b/src/main.c index 9f4ff3d..fe6eb0a 100644 --- a/src/main.c +++ b/src/main.c @@ -469,6 +469,9 @@ init_rat_cursor (screen_info *s) 1, 0, 1); s->rat = XCreatePixmapCursor(dpy, fore, mask, &fg, &bg, RAT_HOT_X, RAT_HOT_Y); + + XFreePixmap (dpy, fore); + XFreePixmap (dpy, mask); } static void @@ -555,6 +558,22 @@ init_screen (screen_info *s, int screen_num) void clean_up () { + int i; + + for (i=0; i