]> git.sesse.net Git - vlc/commitdiff
Fixed a potential interaction dialog leak.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 5 Mar 2009 22:53:04 +0000 (23:53 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 7 Mar 2009 16:53:06 +0000 (17:53 +0100)
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;
 }