Commit f47bbde3 authored by Erwan Tulou's avatar Erwan Tulou

lua: fix crash

when using set_text on an image widget, vlc crashes
(trying to unlock when no lock is held)
parent 4210120a
...@@ -597,7 +597,6 @@ static int vlclua_widget_set_text( lua_State *L ) ...@@ -597,7 +597,6 @@ static int vlclua_widget_set_text( lua_State *L )
case EXTENSION_WIDGET_LIST: case EXTENSION_WIDGET_LIST:
case EXTENSION_WIDGET_IMAGE: case EXTENSION_WIDGET_IMAGE:
default: default:
vlc_mutex_unlock( &p_widget->p_dialog->lock );
return luaL_error( L, "method set_text not valid for this widget" ); return luaL_error( L, "method set_text not valid for this widget" );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment