[PATCH] Memory leak in gtk_style_copy ()?
- From: Olaf Dietsche <olaf dietsche+list gtk netcologne de>
- To: gtk-list redhat com
- Subject: [PATCH] Memory leak in gtk_style_copy ()?
- Date: 07 Mar 1999 18:54:42 +0100
Hi,
it seems to me, like there is missing gdk_font_unref().
Would you please have a look at it?
diff -u gtkstyle.c.orig gtkstyle.c gives:
--8<--cut here----------
--- gtkstyle.c.orig Sun Mar 7 13:13:47 1999
+++ gtkstyle.c Sun Mar 7 13:13:55 1999
@@ -362,6 +362,7 @@
new_style->bg_pixmap[i] = style->bg_pixmap[i];
}
+ gdk_font_unref (new_style->font);
new_style->font = style->font;
gdk_font_ref (new_style->font);
--cut here-->8---------
Regards, Olaf.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]