[vlc-devel] [PATCH] decoder: add missing objres clean on error path
Thomas Guillem
thomas at gllm.fr
Fri Nov 22 16:09:10 CET 2019
---
src/input/decoder_helpers.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c
index 3f1eb9ff1d6..da64af09dbd 100644
--- a/src/input/decoder_helpers.c
+++ b/src/input/decoder_helpers.c
@@ -195,6 +195,7 @@ vlc_decoder_device_Create(vout_window_t *window)
free(name);
if (module == NULL)
{
+ vlc_objres_clear(VLC_OBJECT(&priv->device));
vlc_object_delete(&priv->device);
return NULL;
}
--
2.20.1
More information about the vlc-devel
mailing list