]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix suspend refcounts
authormsw <msw>
Wed, 25 Aug 1999 23:41:16 +0000 (23:41 +0000)
committermsw <msw>
Wed, 25 Aug 1999 23:41:16 +0000 (23:41 +0000)
newt.spec
snackmodule.c

index 123e32e7e82ffa6dbc6b5d3055777c83c6011804..87b07b6ff3eed4662c662af134df826418653a4d 100644 (file)
--- a/newt.spec
+++ b/newt.spec
@@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces.
 Name: newt
 %define version 0.50
 Version: %{version}
-Release: 9
+Release: 10
 Copyright: LGPL
 Group: System Environment/Libraries
 Source: ftp://ftp.redhat.com/pub/redhat/code/newt/newt-%{version}.tar.gz
@@ -57,6 +57,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Aug 25 1999 Matt Wilson <msw@redhat.com>
 - fixed snack callback function refcounts, as well as optional data args
+- fixed suspend callback ref counts
 
 * Mon Aug 23 1999 Matt Wilson <msw@redhat.com>
 - added buttons argument to entrywindow
index d9f0e9359b4acf1bf9c3c4df5ef543b3ad38bb34..9999fb09cf3223dfd2fd6d79a9e3a812f02c02d9 100644 (file)
@@ -236,6 +236,9 @@ static PyObject * initScreen(PyObject * s, PyObject * args) {
 }
 
 static PyObject * finishScreen(PyObject * s, PyObject * args) {
+    Py_XDECREF (suspend.cb);
+    Py_XDECREF (suspend.data);
+    
     newtFinished();
     Py_INCREF(Py_None);
     return Py_None;