[Xfce4-commits] <thunarx-python:master> Reverted previous commit, don't DECREF the files list

Adam Plumb noreply at xfce.org
Thu May 27 18:12:16 CEST 2010


Updating branch refs/heads/master
         to fbc6677f65fe4bd3cd62f1efeb52d59a89a479c2 (commit)
       from 6cf8c66cc5f15a1e9a108421bf282e1b769c31b6 (commit)

commit fbc6677f65fe4bd3cd62f1efeb52d59a89a479c2
Author: Adam Plumb <adamplumb at gmail.com>
Date:   Wed Jan 20 11:05:08 2010 -0500

    Reverted previous commit, don't DECREF the files list

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

diff --git a/src/thunarx-python-object.c b/src/thunarx-python-object.c
index 9afdad2..e588b98 100644
--- a/src/thunarx-python-object.c
+++ b/src/thunarx-python-object.c
@@ -139,7 +139,7 @@ thunarx_python_object_get_file_actions (ThunarxMenuProvider *provider,
 {
     ThunarxPythonObject *object = (ThunarxPythonObject*)provider;
     GList *ret = NULL;
-    PyObject *py_ret = NULL, *py_files = NULL;
+    PyObject *py_ret = NULL, *py_files;
     PyGILState_STATE state = pyg_gil_state_ensure();
 
     debug_enter();
@@ -157,7 +157,6 @@ thunarx_python_object_get_file_actions (ThunarxMenuProvider *provider,
     HANDLE_LIST(py_ret, GtkAction, "gtk.Action");
 
 beach:
-    Py_XDECREF(py_files);
     Py_XDECREF(py_ret);
     pyg_gil_state_release(state);
     return ret;
@@ -209,7 +208,7 @@ thunarx_python_object_get_dnd_actions (ThunarxMenuProvider  *provider,
 {
     ThunarxPythonObject *object = (ThunarxPythonObject*)provider;
     GList *ret = NULL;
-    PyObject *py_ret = NULL, *py_files = NULL;
+    PyObject *py_ret = NULL, *py_files;
     PyGILState_STATE state = pyg_gil_state_ensure();
 
     debug_enter();
@@ -230,7 +229,6 @@ thunarx_python_object_get_dnd_actions (ThunarxMenuProvider  *provider,
     HANDLE_LIST(py_ret, GtkAction, "gtk.Action");
 
 beach:
-    Py_XDECREF(py_files);
     Py_XDECREF(py_ret);
     pyg_gil_state_release(state);
     return ret;
@@ -255,7 +253,7 @@ thunarx_python_object_get_property_pages (ThunarxPropertyPageProvider *provider,
 										  GList                       *files)
 {
     ThunarxPythonObject *object = (ThunarxPythonObject*)provider;
-    PyObject *py_files = NULL, *py_ret = NULL;
+    PyObject *py_files, *py_ret = NULL;
     GList *ret = NULL;
     PyGILState_STATE state = pyg_gil_state_ensure();
 
@@ -274,7 +272,6 @@ thunarx_python_object_get_property_pages (ThunarxPropertyPageProvider *provider,
     HANDLE_LIST(py_ret, ThunarxPropertyPage, "thunarx.PropertyPage");
 	
 beach:
-    Py_XDECREF(py_files);
     Py_XDECREF(py_ret);
     pyg_gil_state_release(state);
     return ret;



More information about the Xfce4-commits mailing list