[nautilus-python] Set the rest of the appropriate methods to free pygobject data as well



commit 204c01e0bb6a30e19b69964e43d4415681e52454
Author: Adam Plumb <adamplumb gmail com>
Date:   Tue Jan 19 12:56:07 2010 -0500

    Set the rest of the appropriate methods to free pygobject data as well

 src/nautilus-python-object.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-python-object.c b/src/nautilus-python-object.c
index 32f7414..13bd58b 100644
--- a/src/nautilus-python-object.c
+++ b/src/nautilus-python-object.c
@@ -237,6 +237,7 @@ nautilus_python_object_get_file_items (NautilusMenuProvider *provider,
 	HANDLE_LIST(py_ret, NautilusMenuItem, "nautilus.MenuItem");
 
  beach:
+ 	free_pygobject_data_list(files);
 	Py_XDECREF(py_ret);
 	pyg_gil_state_release(state);
     return ret;
@@ -301,6 +302,7 @@ nautilus_python_object_get_toolbar_items (NautilusMenuProvider *provider,
 	HANDLE_LIST(py_ret, NautilusMenuItem, "nautilus.MenuItem");
 	
  beach:
+ 	free_pygobject_data(file, NULL);
 	Py_XDECREF(py_ret);
 	pyg_gil_state_release(state);
     return ret;
@@ -392,6 +394,7 @@ nautilus_python_object_update_file_info (NautilusInfoProvider 		*provider,
 	ret = PyInt_AsLong(py_ret);
 	
  beach:
+ 	free_pygobject_data(file, NULL);
 	Py_XDECREF(py_ret);
 	pyg_gil_state_release(state);
     return ret;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]