]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fixed callback setting
authormsw <msw>
Thu, 29 Jul 1999 04:00:55 +0000 (04:00 +0000)
committermsw <msw>
Thu, 29 Jul 1999 04:00:55 +0000 (04:00 +0000)
snackmodule.c

index d86a3ac3afa780ea1129b7f27d0be5c82fe576fa..e482b17929e7b80f13ff815b0b91de9fbc072d10 100644 (file)
@@ -264,12 +264,13 @@ static void suspendCallback(void * data) {
     struct suspendCallbackStruct * scs = data;
     PyObject * args, * result;
 
-    args = Py_BuildValue("(OO)", scs->data);
+    args = Py_BuildValue("(O)", scs->data);
     result = PyEval_CallObject(scs->cb, args);
+
     Py_DECREF(args);
-    Py_DECREF(result);
+    Py_XDECREF(result);
 
-    return ;
+    return;
 }
 
 static PyObject * setSuspendCallback(PyObject * s, PyObject * args) {