projects
/
aubio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[py] check if filter was created before deleting it
[aubio.git]
/
python
/
ext
/
py-filter.c
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);
}