From 73566254556aa91fc0a8d303558469aa8f9f95fb Mon Sep 17 00:00:00 2001 From: Tomas Ogren Date: Thu, 4 Mar 1999 03:24:56 +0000 Subject: [PATCH] Added a g_strdup() on DEFAULT_IMAGE_TITLE_FORMAT, otherwise it would try 1999-03-04 Tomas Ogren * app/gimprc.c: Added a g_strdup() on DEFAULT_IMAGE_TITLE_FORMAT, otherwise it would try to free a constant string when cancling out of prefs or changing the title-style. --- ChangeLog | 6 ++++++ app/gimprc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1ac2f45c53..cdf47cae53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-03-04 Tomas Ogren + + * app/gimprc.c: Added a g_strdup() on DEFAULT_IMAGE_TITLE_FORMAT, + otherwise it would try to free a constant string when cancling out of + prefs or changing the title-style. + Wed Mar 3 18:38:31 MET 1999 Sven Neumann More unit/resolution stuff (most of it from Michael). diff --git a/app/gimprc.c b/app/gimprc.c index 151d9c628a..599675b4e8 100644 --- a/app/gimprc.c +++ b/app/gimprc.c @@ -380,7 +380,7 @@ parse_gimprc () } if (!image_title_format) - image_title_format = DEFAULT_IMAGE_TITLE_FORMAT; + image_title_format = g_strdup(DEFAULT_IMAGE_TITLE_FORMAT); } void