diff finch/libgnt/pygnt/gnttree.override @ 19940:80bfc233c9f2

Fix a memory corruption. Change default binding for 'jump next unread' from 'J' to 'n'. Treat 'None' in pygnt as NULL in gnt.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 12 Sep 2007 11:04:26 +0000
parents 44b4e8bd759b
children 66001118617d
line wrap: on
line diff
--- a/finch/libgnt/pygnt/gnttree.override	Wed Sep 12 09:45:16 2007 +0000
+++ b/finch/libgnt/pygnt/gnttree.override	Wed Sep 12 11:04:26 2007 +0000
@@ -51,7 +51,6 @@
 	while (list) {
 		PyObject *obj = list->data;
 		PyList_Append(py_list, obj);
-		Py_DECREF(obj);
 		list = list->next;
 	}
 	return py_list;
@@ -89,6 +88,11 @@
 		Py_DECREF(item);
 	}
 
+	if (parent == Py_None)
+		parent = NULL;
+	if (bigbro == Py_None)
+		bigbro = NULL;
+
 	list = g_list_reverse(list);
 	row = gnt_tree_create_row_from_list(GNT_TREE(self->obj), list);
 	gnt_tree_add_row_after(GNT_TREE(self->obj),