changeset 149:6028f787f7c8

Fixed a graphics context leak in dw_draw_text().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 24 Oct 2002 05:39:00 +0000
parents 830f591c87f1
children 2a0d7b57a6da
files gtk/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Wed Oct 23 16:23:06 2002 +0000
+++ b/gtk/dw.c	Thu Oct 24 05:39:00 2002 +0000
@@ -4724,10 +4724,10 @@
 
 			gdk_text_extents(font, text, strlen(text), NULL, NULL, NULL, &ascent, NULL);
 			gdk_draw_text(handle ? handle->window : pixmap->pixmap, font, gc, x, y + ascent + 2, text, strlen(text));
-			gdk_gc_unref(gc);
 			gdk_font_unref(font);
 		}
 #endif
+		gdk_gc_unref(gc);
 	}
 	DW_MUTEX_UNLOCK;
 }