History

[py] check if filter was created before deleting it

Paul Brossier committed 7 years ago

Commit a9f463c1 parent 2bfbf331 file · +2 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/py-filter.c+2−1
@@ -109,7 +109,8 @@ static void · 108 unmodified lines
109109 Py_filter_del (Py_filter * self)
110110 {
111111 Py_XDECREF(self->out);
112− del_aubio_filter (self->o);
112+ if (self->o)
113+ del_aubio_filter (self->o);
113114 Py_TYPE(self)->tp_free ((PyObject *) self);
114115 }
115116

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t