History

[py] check sink was created before calling del_aubio_sink

Paul Brossier committed 7 years ago

Commit 98d7aaa1 parent 48105ca1 file · +4 −2Browse files

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

Unified · Split

python/ext/py-sink.c+4−2
@@ -150,8 +150,10 @@ Py_sink_init (Py_sink * self, PyObject * args, PyObject * kwds) · 149 unmodified lines
150static void150static void
151Py_sink_del (Py_sink *self, PyObject *unused)151Py_sink_del (Py_sink *self, PyObject *unused)
152{152{
153 del_aubio_sink(self->o);153 if (self->o) {
154 free(self->mwrite_data.data);154 del_aubio_sink(self->o);
155 free(self->mwrite_data.data);
156 }
155 if (self->uri) {157 if (self->uri) {
156 free(self->uri);158 free(self->uri);
157 }159 }

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