[vlc-commits] dialog: memory leak

Rémi Denis-Courmont git at videolan.org
Mon Jan 11 20:28:39 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 11 21:13:57 2016 +0200| [5b6e77c6e435bcb4c70d0909283b49309a3273d1] | committer: Rémi Denis-Courmont

dialog: memory leak

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

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

diff --git a/src/interface/dialog.c b/src/interface/dialog.c
index cb84a04..993fc08 100644
--- a/src/interface/dialog.c
+++ b/src/interface/dialog.c
@@ -201,6 +201,7 @@ int dialog_Question (vlc_object_t *obj, const char *title, const char *fmt,
         dialog_question_t dialog = { title, text, yes, no, cancel, 0, };
         var_SetAddress (provider, "dialog-question", &dialog);
         answer = dialog.answer;
+        free (text);
     }
     va_end (ap);
     vlc_object_release (provider);



More information about the vlc-commits mailing list