From: Christoph Hohmann Date: Mon, 9 Jun 2003 14:37:57 +0000 (+0000) Subject: 0.9.0claws24 X-Git-Tag: rel_0_9_3~90 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=c1490b1eed42acd15f9708d9a61d8a6a7bfd3c7f 0.9.0claws24 * src/gtk/gtkaspell.c revert Thorsten's fix and add forgotten g_strdup for aspell path (it should not be possible to alter the path a GtkASpell uses from outside) --- diff --git a/ChangeLog.claws b/ChangeLog.claws index 2b30cba88..d3a7903a9 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,10 @@ +2003-06-09 [christoph] 0.9.0claws24 + + * src/gtk/gtkaspell.c + revert Thorsten's fix and add forgotten g_strdup for + aspell path (it should not be possible to alter the path a + GtkASpell uses from outside) + 2003-06-09 [thorsten] 0.9.0claws23 * src/gtk/gtkaspell.c diff --git a/configure.ac b/configure.ac index b4a71f471..ad40c92ff 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=0 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws23 +EXTRA_VERSION=claws24 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/gtk/gtkaspell.c b/src/gtk/gtkaspell.c index 09854254d..efaf39535 100644 --- a/src/gtk/gtkaspell.c +++ b/src/gtk/gtkaspell.c @@ -280,7 +280,7 @@ GtkAspell *gtkaspell_new(const gchar *dictionary_path, gtkaspell = g_new0(GtkAspell, 1); - gtkaspell->dictionary_path = dictionary_path; + gtkaspell->dictionary_path = g_strdup(dictionary_path); gtkaspell->gtkaspeller = gtkaspeller; gtkaspell->alternate_speller = NULL; @@ -349,6 +349,8 @@ void gtkaspell_delete(GtkAspell * gtkaspell) if (gtkaspell->suggestions_list) free_suggestions_list(gtkaspell); + g_free((gchar *)gtkaspell->dictionary_path); + debug_print("Aspell: deleting gtkaspell %0x\n", (guint) gtkaspell); g_free(gtkaspell);