From: msw Date: Wed, 25 Aug 1999 23:41:16 +0000 (+0000) Subject: fix suspend refcounts X-Git-Tag: r0-50~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd66cfb7c77e1b1f5029ddfc914c4e1c8f379c71;p=thirdparty%2Fnewt.git fix suspend refcounts --- diff --git a/newt.spec b/newt.spec index 123e32e..87b07b6 100644 --- 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 - fixed snack callback function refcounts, as well as optional data args +- fixed suspend callback ref counts * Mon Aug 23 1999 Matt Wilson - added buttons argument to entrywindow diff --git a/snackmodule.c b/snackmodule.c index d9f0e93..9999fb0 100644 --- a/snackmodule.c +++ b/snackmodule.c @@ -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;