projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2bfbf33
)
[py] check if filter was created before deleting it
author
Paul Brossier
<piem@piem.org>
Fri, 21 Dec 2018 14:26:04 +0000
(15:26 +0100)
committer
Paul Brossier
<piem@piem.org>
Fri, 21 Dec 2018 14:26:04 +0000
(15:26 +0100)
python/ext/py-filter.c
patch
|
blob
|
history
diff --git
a/python/ext/py-filter.c
b/python/ext/py-filter.c
index
e10a8ed
..
861f8cd
100644
(file)
--- a/
python/ext/py-filter.c
+++ b/
python/ext/py-filter.c
@@
-109,7
+109,8
@@
static void
Py_filter_del (Py_filter * self)
{
Py_XDECREF(self->out);
- del_aubio_filter (self->o);
+ if (self->o)
+ del_aubio_filter (self->o);
Py_TYPE(self)->tp_free ((PyObject *) self);
}