[Xfce4-commits] <thunarx-python:master> Don't decrement the obj reference count here. Fixes some PyThreadState_New segmentation faults

Adam Plumb noreply at xfce.org
Thu May 27 18:11:26 CEST 2010


Updating branch refs/heads/master
         to 8df448ded427470dd6d2eda587ee2f3b149ba684 (commit)
       from c0bc1acda38dd015f1bada495e4d13bea5d78e4e (commit)

commit 8df448ded427470dd6d2eda587ee2f3b149ba684
Author: Adam Plumb <adamplumb at gmail.com>
Date:   Thu Jan 14 15:49:30 2010 -0500

    Don't decrement the obj reference count here. Fixes some PyThreadState_New segmentation faults

 src/thunarx-python-object.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/thunarx-python-object.c b/src/thunarx-python-object.c
index cb7a68d..e588b98 100644
--- a/src/thunarx-python-object.c
+++ b/src/thunarx-python-object.c
@@ -89,9 +89,7 @@ static GList *thunarx_python_object_get_renamers                (ThunarxRenamerP
         py_files = PyList_New(0);                                           \
 		for (l = files; l; l = l->next)                                     \
 		{                                                                   \
-            PyObject *obj = pygobject_new((GObject*)l->data);               \
-			PyList_Append(py_files, obj);							        \
-			Py_DECREF(obj);                                                 \
+			PyList_Append(py_files, pygobject_new((GObject*)l->data));		\
 		}                                                                   \
 	}
 



More information about the Xfce4-commits mailing list