[Goodies-commits] r6102 - in xfce4-dict/trunk: . lib

Enrico Troeger enrico at xfce.org
Sat Nov 15 11:19:17 CET 2008


Author: enrico
Date: 2008-11-15 10:19:17 +0000 (Sat, 15 Nov 2008)
New Revision: 6102

Modified:
   xfce4-dict/trunk/ChangeLog
   xfce4-dict/trunk/lib/spell.c
Log:
Fix crashes when using the dictionary refresh button in the prefs dialog and while using enchant as spell checker.

Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog	2008-11-15 10:19:14 UTC (rev 6101)
+++ xfce4-dict/trunk/ChangeLog	2008-11-15 10:19:17 UTC (rev 6102)
@@ -1,6 +1,8 @@
 2008-11-15  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * Avoid leaving zombie processes when using spell checking (bug 4615).
+ * Fix crashes when using the dictionary refresh button in the prefs
+   dialog and while using enchant as spell checker.
 
 
 2008-11-14  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: xfce4-dict/trunk/lib/spell.c
===================================================================
--- xfce4-dict/trunk/lib/spell.c	2008-11-15 10:19:14 UTC (rev 6101)
+++ xfce4-dict/trunk/lib/spell.c	2008-11-15 10:19:17 UTC (rev 6102)
@@ -273,11 +273,12 @@
 
 	g_strfreev(list);
 
-	list = g_new0(gchar *, dicts->len);
+	list = g_new0(gchar *, dicts->len + 1);
 	for (i = 0; i < dicts->len; i++)
 	{
 		list[i] = g_ptr_array_index(dicts, i);
 	}
+	list[i] = NULL;
 	g_ptr_array_free(dicts, TRUE);
 
 	return list;




More information about the Goodies-commits mailing list