finch/libgnt/pygnt/gnttree.override

changeset 19965
e4de5a1d84a5
parent 19859
71d37b57eff2
child 20773
13047605e97e
--- 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),

mercurial