projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc60935
)
- fix compilation with older python versions
author
Michael Schroeder
<mls@suse.de>
Wed, 30 May 2012 10:57:40 +0000
(12:57 +0200)
committer
Michael Schroeder
<mls@suse.de>
Wed, 30 May 2012 10:57:40 +0000
(12:57 +0200)
bindings/solv.i
patch
|
blob
|
history
diff --git
a/bindings/solv.i
b/bindings/solv.i
index
8a54307
..
a5b9552
100644
(file)
--- 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);