25 lines
982 B
Diff
25 lines
982 B
Diff
diff -Nru gammu-1.32.0.orig/python/gammu/src/gammu.c gammu-1.32.0/python/gammu/src/gammu.c
|
|
--- gammu-1.32.0.orig/python/gammu/src/gammu.c 2012-06-27 10:02:28.000000000 +0200
|
|
+++ gammu-1.32.0/python/gammu/src/gammu.c 2013-05-23 01:42:01.796386347 +0200
|
|
@@ -5344,7 +5344,7 @@
|
|
#ifdef WITH_THREAD
|
|
PyThread_free_lock(self->mutex);
|
|
#endif
|
|
- self->ob_type->tp_free((PyObject*)self);
|
|
+ Py_TYPE(self)->tp_free((PyObject*)self);
|
|
}
|
|
|
|
static PyObject *
|
|
diff -Nru gammu-1.32.0.orig/python/gammu/src/smsd.c gammu-1.32.0/python/gammu/src/smsd.c
|
|
--- gammu-1.32.0.orig/python/gammu/src/smsd.c 2012-06-27 10:02:28.000000000 +0200
|
|
+++ gammu-1.32.0/python/gammu/src/smsd.c 2013-05-23 01:42:40.412918323 +0200
|
|
@@ -198,7 +198,7 @@
|
|
static void SMSD_dealloc(SMSDObject * self)
|
|
{
|
|
SMSD_FreeConfig(self->config);
|
|
- self->ob_type->tp_free((PyObject *) self);
|
|
+ Py_TYPE(self)->tp_free((PyObject *) self);
|
|
}
|
|
|
|
static PyObject *SMSD_new(PyTypeObject * type, PyObject * args, PyObject * kwds)
|