]> git.sesse.net Git - vlc/blobdiff - src/interface/interaction.c
Fixed a potential interaction dialog leak.
[vlc] / src / interface / interaction.c
index d9d272aefcfeb9794be7e30002b659f7ab8e2d4b..77829884e7095674aba47fbdba55da7f72a30913 100644 (file)
@@ -155,7 +155,11 @@ __intf_Progress( vlc_object_t *p_this, const char *psz_title,
     else
         p_new->i_flags = DIALOG_INTF_PROGRESS;
 
-    DialogSend( p_new );
+    if( DialogSend( p_new ) == VLC_EGENERIC )
+    {
+        DialogDestroy( p_new );
+        return NULL;
+    }
     return p_new;
 }