[gnumeric] python: plug leak.



commit 86a927be2127bf3aa69103801ba3792177b06924
Author: Morten Welinder <terra gnome org>
Date:   Wed Apr 13 14:33:41 2011 -0400

    python: plug leak.

 plugins/python-loader/py-interpreter-selector.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/python-loader/py-interpreter-selector.c b/plugins/python-loader/py-interpreter-selector.c
index 60f9dd0..c63082e 100644
--- a/plugins/python-loader/py-interpreter-selector.c
+++ b/plugins/python-loader/py-interpreter-selector.c
@@ -228,7 +228,7 @@ gnm_py_interpreter_selector_new (GOErrorInfo **err)
 	sel->py_object = gnm_python_object_get (err);
 	if (sel->py_object == NULL) {
 		g_object_ref_sink (obj);
-#warning Does this need an unref ?  All other calls did not add the ref beforehand
+		g_object_unref (obj);
 		return NULL;
 	}
 	g_signal_connect (



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