shithub: aubio

Download patch

ref: a9f463c7d49a3b4727de8ca17aaa5ac7366baeab
parent: 2bfbf3364f1912a2409e18e54dee361571234b00
author: Paul Brossier <piem@piem.org>
date: Fri Dec 21 10:26:04 EST 2018

[py] check if filter was created before deleting it

--- a/python/ext/py-filter.c
+++ b/python/ext/py-filter.c
@@ -109,7 +109,8 @@
 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);
 }