vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Mon Jul  4 
17:59:55 2011 +0200| [0bade2cde2129fb7b719fd48a89190bcd3d5c650] | committer: 
Jean-Baptiste Kempf

lua: Don't crash when reactivating an extension.

Close #5019
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/lua/extension.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/lua/extension.c b/modules/lua/extension.c
index 541d06c..25b6c34 100644
--- a/modules/lua/extension.c
+++ b/modules/lua/extension.c
@@ -654,6 +654,7 @@ int lua_ExtensionDeactivate( extensions_manager_t *p_mgr, 
extension_t *p_ext )
             vlc_gc_decref( p_item );
         }
         vlc_object_release( p_ext->p_sys->p_input );
+        p_ext->p_sys->p_input = NULL;
     }
 
     int i_ret = lua_ExecuteFunction( p_mgr, p_ext, "deactivate", LUA_END );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to