From: Michael Schroeder Date: Wed, 30 May 2012 10:57:40 +0000 (+0200) Subject: - fix compilation with older python versions X-Git-Tag: BASE-SuSE-Code-12_2-Branch~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ce968e07fab4303319565827b5936922ec127cf;p=platform%2Fupstream%2Flibsolv.git - fix compilation with older python versions --- diff --git a/bindings/solv.i b/bindings/solv.i index 8a54307..a5b9552 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -843,7 +843,8 @@ typedef struct { %} void set_loadcallback(PyObject *callable) { if ($self->loadcallback == loadcallback) { - Py_DECREF($self->loadcallbackdata); + PyObject *obj = $self->loadcallbackdata; + Py_DECREF(obj); } if (callable) { Py_INCREF(callable);