0.9.0claws24
authorChristoph Hohmann <reboot@gmx.ch>
Mon, 9 Jun 2003 14:37:57 +0000 (14:37 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Mon, 9 Jun 2003 14:37:57 +0000 (14:37 +0000)
* 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)

ChangeLog.claws
configure.ac
src/gtk/gtkaspell.c

index 2b30cba88a2d646d85ce34c2c5cb50f3e4868fec..d3a7903a9c0a0c48e407ad9f20eef3905701fa19 100644 (file)
@@ -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
index b4a71f471f573011e24e226b2ece513da78b6b0f..ad40c92ff72426f2fcacb44c264a292fcf449f5c 100644 (file)
@@ -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
index 09854254d481afd1681347648ad975d095a8edd0..efaf39535606e01abe3546576a71054d9c5f2a10 100644 (file)
@@ -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);