[vlc-commits] lua: Don't crash when reactivating an extension.
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jul 4 21:52:30 CEST 2011
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | 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 <jb at videolan.org>
> 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 );
More information about the vlc-commits
mailing list