[vlc-devel] commit: Fixed a potential interaction dialog leak. (Laurent Aimar )
git version control
git at videolan.org
Sat Mar 7 17:59:02 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Mar 5 23:53:04 2009 +0100| [96b814ba7c70d9aaacbfb13d890b842c34f2da25] | committer: Laurent Aimar
Fixed a potential interaction dialog leak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96b814ba7c70d9aaacbfb13d890b842c34f2da25
---
src/interface/interaction.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/interface/interaction.c b/src/interface/interaction.c
index d9d272a..7782988 100644
--- a/src/interface/interaction.c
+++ b/src/interface/interaction.c
@@ -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;
}
More information about the vlc-devel
mailing list