[vlc-commits] decoder: add missing objres clean on error path

Thomas Guillem git at videolan.org
Wed Nov 27 10:18:29 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 22 16:36:57 2019 +0100| [b737a5ff57068c7c5676809cd569f9948c8067ba] | committer: Steve Lhomme

decoder: add missing objres clean on error path

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b737a5ff57068c7c5676809cd569f9948c8067ba
---

 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 3f1eb9ff1d..da64af09db 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;
     }



More information about the vlc-commits mailing list