Showing the changes to python/ext (1 of 1 file). Show all
Unified · Split
| @@ -109,7 +109,8 @@ static void · 108 unmodified lines | ||
| 109 | 109 | Py_filter_del (Py_filter * self) |
| 110 | 110 | { |
| 111 | 111 | Py_XDECREF(self->out); |
| 112 | − del_aubio_filter (self->o); | |
| 112 | + if (self->o) | |
| 113 | + del_aubio_filter (self->o); | |
| 113 | 114 | Py_TYPE(self)->tp_free ((PyObject *) self); |
| 114 | 115 | } |
| 115 | 116 | |