[evolution-patches] gnome spell leak fix.
- From: Larry Ewing <lewing ximian com>
- To: patches <evolution-patches ximian com>, Radek Doulik <rodo ximian com>
- Subject: [evolution-patches] gnome spell leak fix.
- Date: 10 Jun 2003 12:56:41 -0500
This code was copying the string twice here, so I just removed one of
the dups.
--Larry
? GNOME_Spell.server
? GNOME_Spell.server.in
Index: dictionary.c
===================================================================
RCS file: /cvs/gnome/gnome-spell/gnome-spell/dictionary.c,v
retrieving revision 1.33
diff -u -p -r1.33 dictionary.c
--- dictionary.c 16 May 2003 12:18:18 -0000 1.33
+++ dictionary.c 10 Jun 2003 17:41:56 -0000
@@ -324,7 +324,7 @@ impl_gnome_spell_dictionary_set_language
one_language = g_strndup (begin, len);
se = new_engine (one_language);
dict->engines = g_slist_prepend (dict->engines, se);
- g_hash_table_insert (dict->languages, g_strdup (one_language), se);
+ g_hash_table_insert (dict->languages, one_language, se);
g_hash_table_insert (dict->engines_ht, se, g_strdup (one_language));
dict->changed = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]