From kaz@hypercore.co.jp Sun Apr 20 09:36:35 1997 Date: 20 Apr 1997 18:01:08 +0900 From: Kazuhiro Sasayama To: gimp-developer@scam.xcf.berkeley.edu Subject: [gimp-devel][patch] Memory leaks in gdk 0.99.8 I found a source of memory leaks in gdk 0.99.8 with the help of Checker (as Electric Fence cannot detect leaks:-). --- gimp-0.99.8/gtk+/gdk/gdkwindow.c 1997-04-20 15:59:04+09 1.1 +++ gimp-0.99.8/gtk+/gdk/gdkwindow.c 1997-04-20 16:00:01+09 @@ -244,7 +244,10 @@ title = gdk_progname; if (XStringListToTextProperty (&title, 1, &text_property)) - XSetWMName (private->xdisplay, private->xwindow, &text_property); + { + XSetWMName (private->xdisplay, private->xwindow, &text_property); + XFree (text_property.value); + } gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ? (attributes->cursor) : -- Kaz Sasayama, the designer of Hyperplay. PGP key fingerprint = 53 71 54 56 FB 3D 76 0B 92 5D 32 40 C5 34 38 00