[vlc-commits] lua: dialogs: Fix memory leak

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 21 18:23:26 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 21 18:14:06 2017 +0200| [1899d9d4207537b82166b8d21ea140fb7a23be81] | committer: Hugo Beauzée-Luyssen

lua: dialogs: Fix memory leak

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

 modules/lua/libs/dialog.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/lua/libs/dialog.c b/modules/lua/libs/dialog.c
index a4848150b3..488b032226 100644
--- a/modules/lua/libs/dialog.c
+++ b/modules/lua/libs/dialog.c
@@ -291,6 +291,7 @@ static int vlclua_dialog_delete( lua_State *L )
     /* Note: At this point, the UI must not use these resources */
     vlc_mutex_destroy( &p_dlg->lock );
     vlc_cond_destroy( &p_dlg->cond );
+    free( p_dlg );
 
     return 1;
 }



More information about the vlc-commits mailing list