~ubuntu-branches/ubuntu/vivid/newt/vivid

« back to all changes in this revision

Viewing changes to debian/patches/python_memory_allocation.patch

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-11-08 14:50:00 UTC
  • mfrom: (2.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20121108145000-0yfrol7obct0jufq
Tags: 0.52.14-11ubuntu1
* Merge with Debian; remaining changes:
  - Port python module to python3.
  - Fix installation for multiple python3 versions.
  - Move libnewt to /lib and whiptail to /bin so they can be used by
    friendly-recovery on systems that have a separate /usr.
  - debian/libnewt0.52.install, debian/libnewt0.52.postinst,
    debian/palette => debian/palette.original:
    - move palette from /usr to /etc such that they can be edited by an
      admin.
* Configure --with-colorsfile=/etc/newt/palette.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: Thomas Viehmann <tv@beamnet.de>
 
2
Description: Fix for python memory handling
 
3
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445392
 
4
Last-Updated: 2009-04-20
 
5
Forwarded: no
 
6
 
 
7
diff -ruN newt-0.52.11-old/snackmodule.c newt-0.52.11/snackmodule.c
 
8
--- newt-0.52.11-old/snackmodule.c      2008-07-30 13:42:55.000000000 +0100
 
9
+++ newt-0.52.11/snackmodule.c  2009-04-20 21:31:38.000000000 +0100
 
10
@@ -273,7 +273,7 @@
 
11
 static snackWidget * snackWidgetNew (void) {
 
12
     snackWidget * widget;
 
13
      
 
14
-    widget = PyObject_NEW(snackWidget, &snackWidgetType);
 
15
+    widget = PyObject_New(snackWidget, &snackWidgetType);
 
16
 
 
17
     widget->scs.cb = NULL;
 
18
     widget->scs.data = NULL;
 
19
@@ -790,7 +790,7 @@
 
20
     if (help == Py_None)
 
21
        help = NULL;
 
22
 
 
23
-    form = PyObject_NEW(snackForm, &snackFormType);
 
24
+    form = PyObject_New(snackForm, &snackFormType);
 
25
     form->fo = newtForm(NULL, help, 0);
 
26
 
 
27
     return form;
 
28
@@ -802,7 +802,7 @@
 
29
 
 
30
     if (!PyArg_ParseTuple(args, "ii", &cols, &rows)) return NULL;
 
31
 
 
32
-    grid = PyObject_NEW(snackGrid, &snackGridType);
 
33
+    grid = PyObject_New(snackGrid, &snackGridType);
 
34
     grid->grid = newtCreateGrid(cols, rows);
 
35
 
 
36
     return grid;