mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
[input] Fix memleak of path when seting up a new input file
Credit @whatdoineed2do Closes #1067
This commit is contained in:
parent
249809469d
commit
47779e59e7
@ -410,6 +410,9 @@ setup(struct input_source *source, struct db_queue_item *queue_item, int seek_ms
|
|||||||
if ((type < 0) || (inputs[type]->disabled))
|
if ((type < 0) || (inputs[type]->disabled))
|
||||||
goto setup_error;
|
goto setup_error;
|
||||||
|
|
||||||
|
// Avoids memleaks in cases where stop() is not called
|
||||||
|
clear(source);
|
||||||
|
|
||||||
source->type = type;
|
source->type = type;
|
||||||
source->data_kind = queue_item->data_kind;
|
source->data_kind = queue_item->data_kind;
|
||||||
source->media_kind = queue_item->media_kind;
|
source->media_kind = queue_item->media_kind;
|
||||||
|
Loading…
Reference in New Issue
Block a user