From: Jim Evins Date: Fri, 12 Dec 2003 03:22:14 +0000 (+0000) Subject: Removed some artifacts in copy() method. In particular a g_free() on an unitialized... X-Git-Tag: glabels-2_3_0~523 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d82d0c3852692d9931c1e5b0533ec50ba3646d1;p=glabels Removed some artifacts in copy() method. In particular a g_free() on an unitialized automatic variable was removed, which caused a copy/paste of a text object to segfault (See bug #857773). git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@371 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/src/label-text.c b/glabels2/src/label-text.c index 883e54a2..2bd0380c 100644 --- a/glabels2/src/label-text.c +++ b/glabels2/src/label-text.c @@ -229,12 +229,6 @@ copy (glLabelObject *dst_object, glLabelText *ltext = (glLabelText *)src_object; glLabelText *new_ltext = (glLabelText *)dst_object; GList *lines; - gchar *font_family; - gdouble font_size; - GnomeFontWeight font_weight; - gboolean font_italic_flag; - guint color; - GtkJustification just; gl_debug (DEBUG_LABEL, "START"); @@ -252,7 +246,6 @@ copy (glLabelObject *dst_object, new_ltext->private->just = ltext->private->just; gl_text_node_lines_free (&lines); - g_free (font_family); gl_debug (DEBUG_LABEL, "END"); }