From: compudj Date: Tue, 30 Nov 2004 15:36:03 +0000 (+0000) Subject: dotted gc bugfix X-Git-Tag: v0.12.20~2644 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=83ab53c4adb79069f748e595240c1133e08e744b;p=lttv.git dotted gc bugfix git-svn-id: http://ltt.polymtl.ca/svn@845 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index 4a1c9c94..a67acc5a 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -927,7 +927,7 @@ void drawing_destroy(Drawing_t *drawing) gdk_gc_unref(drawing->gc); g_free(drawing->pango_layout); - if(!drawing->dotted_gc) gdk_gc_unref(drawing->dotted_gc); + if(drawing->dotted_gc != NULL) gdk_gc_unref(drawing->dotted_gc); g_free(drawing); g_info("drawing_destroy end"); }