[gedit] Fix refcounting error in doc.get_search_text
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Fix refcounting error in doc.get_search_text
- Date: Fri, 20 Nov 2009 14:57:20 +0000 (UTC)
commit 6bab43e7424cfdda8ead9d1c6d0bff7d3a0722df
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Nov 20 15:53:25 2009 +0100
Fix refcounting error in doc.get_search_text
plugin-loaders/python/bindings/gedit.override | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugin-loaders/python/bindings/gedit.override b/plugin-loaders/python/bindings/gedit.override
index afc67ca..52c492a 100644
--- a/plugin-loaders/python/bindings/gedit.override
+++ b/plugin-loaders/python/bindings/gedit.override
@@ -260,8 +260,8 @@ _wrap_gedit_document_get_search_text(PyGObject *self)
if (ret) {
string = PyString_FromString(ret);
PyTuple_SetItem(tuple, 0, string);
- Py_DECREF(string);
} else {
+ Py_INCREF(Py_None);
PyTuple_SetItem(tuple, 0, Py_None);
}
PyTuple_SetItem(tuple, 1, PyInt_FromLong(flags));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]