[Xfce4-commits] <thunarx-python:master> Initialize py_files as NULL because we need to make sure that memory is clean for the DECREF in beach

Adam Plumb noreply at xfce.org
Thu May 27 18:14:19 CEST 2010


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

commit 6cf8c66cc5f15a1e9a108421bf282e1b769c31b6
Author: Adam Plumb <adamplumb at gmail.com>
Date:   Wed Jan 20 10:58:09 2010 -0500

    Initialize py_files as NULL because we need to make sure that memory is clean for the DECREF in beach

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

diff --git a/src/thunarx-python-object.c b/src/thunarx-python-object.c
index 99ca5f0..9afdad2 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;
+    PyObject *py_ret = NULL, *py_files = NULL;
     PyGILState_STATE state = pyg_gil_state_ensure();
 
     debug_enter();
@@ -209,7 +209,7 @@ thunarx_python_object_get_dnd_actions (ThunarxMenuProvider  *provider,
 {
     ThunarxPythonObject *object = (ThunarxPythonObject*)provider;
     GList *ret = NULL;
-    PyObject *py_ret = NULL, *py_files;
+    PyObject *py_ret = NULL, *py_files = NULL;
     PyGILState_STATE state = pyg_gil_state_ensure();
 
     debug_enter();
@@ -255,7 +255,7 @@ thunarx_python_object_get_property_pages (ThunarxPropertyPageProvider *provider,
 										  GList                       *files)
 {
     ThunarxPythonObject *object = (ThunarxPythonObject*)provider;
-    PyObject *py_files, *py_ret = NULL;
+    PyObject *py_files = NULL, *py_ret = NULL;
     GList *ret = NULL;
     PyGILState_STATE state = pyg_gil_state_ensure();
 



More information about the Xfce4-commits mailing list