From 888d81773c18187b4a66047121b9c75bdfdabde1 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Thu, 6 Apr 2006 01:50:16 +0000 Subject: [PATCH] 2006-04-05 Jim Evins * src/object-editor.c: (gl_object_editor_set_key_names): Fixed potential crash when freeing empty key list. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@588 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/ChangeLog | 5 +++++ glabels2/src/object-editor.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index 982a52eb..b43095ef 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,8 @@ +2006-04-05 Jim Evins + + * src/object-editor.c: (gl_object_editor_set_key_names): + Fixed potential crash when freeing empty key list. + 2006-03-11 Jim Evins * src/print.c: (draw_text_object): diff --git a/glabels2/src/object-editor.c b/glabels2/src/object-editor.c index f8652f2c..9507ccbb 100644 --- a/glabels2/src/object-editor.c +++ b/glabels2/src/object-editor.c @@ -526,7 +526,7 @@ gl_object_editor_set_key_names (glObjectEditor *editor, keys = gl_merge_get_key_list (merge); if ( keys == NULL ) { - keys = g_list_append (keys, ""); + keys = g_list_append (keys, g_strdup ("")); } combo = editor->priv->img_key_combo; -- 2.39.5