[vlc-commits] core: provider can be null in libvlc_InternalDialogClean

Thomas Guillem git at videolan.org
Tue Sep 20 16:42:33 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 20 16:36:00 2016 +0200| [57f079d414e51b28f47ae97e33fd4958564337dd] | committer: Thomas Guillem

core: provider can be null in libvlc_InternalDialogClean

Like all others libvlc_*Clean fonctions.

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

 src/interface/dialog.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/interface/dialog.c b/src/interface/dialog.c
index 52cc7e8..10e515d 100644
--- a/src/interface/dialog.c
+++ b/src/interface/dialog.c
@@ -245,6 +245,8 @@ libvlc_InternalDialogClean(libvlc_int_t *p_libvlc)
     assert(p_libvlc != NULL);
     vlc_dialog_provider *p_provider = libvlc_priv(p_libvlc)->p_dialog_provider;
 
+    if (p_provider == NULL)
+        return;
     vlc_mutex_lock(&p_provider->lock);
     dialog_clear_all_locked(p_provider);
     vlc_mutex_unlock(&p_provider->lock);



More information about the vlc-commits mailing list