]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- fix memory allocation in snack to be consistent (#212780) (Jeremy Katz)
authormlichvar <mlichvar>
Tue, 30 Jan 2007 09:56:09 +0000 (09:56 +0000)
committermlichvar <mlichvar>
Tue, 30 Jan 2007 09:56:09 +0000 (09:56 +0000)
newt.spec
snackmodule.c

index 3e013c2a03e7b2aaf70c058150fe4b04fb70d83f..22af0c8042df9dd7060b86090363a2a8c5d6fe12 100644 (file)
--- a/newt.spec
+++ b/newt.spec
@@ -1,7 +1,7 @@
 Summary: A development library for text mode user interfaces.
 Name: newt
 Version: 0.52.4
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: LGPL
 Group: System Environment/Libraries
 Source: newt-%{version}.tar.gz
@@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libnewt.so
 
 %changelog
+* Sat Jan  6 2007 Jeremy Katz <katzj@redhat.com> - 0.52.4-3
+- fix memory allocation in snack to be consistent (#212780)
+
 * Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.52.4-2
 - rebuild for python 2.5
 
index deb38671c9fb2539b320ae276e67493821e80558..cc64f0ffa5d01dc65caa9234a3e8ce4aae1799d0 100644 (file)
@@ -924,8 +924,8 @@ static void widgetDestructor(PyObject * o) {
     
     Py_XDECREF (s->scs.cb);
     Py_XDECREF (s->scs.data);
-
-    PyMem_DEL(o);
+    
+    PyObject_Free(o);
 }
 
 static PyObject * widgetAddCallback(snackWidget * s, PyObject * args) {