]> git.sesse.net Git - vlc/commitdiff
lua: fix crash
authorErwan Tulou <erwan10@videolan.org>
Sun, 21 Feb 2010 14:26:21 +0000 (15:26 +0100)
committerErwan Tulou <erwan10@videolan.org>
Sun, 21 Feb 2010 14:38:36 +0000 (15:38 +0100)
when using set_text on an image widget, vlc crashes
(trying to unlock when no lock is held)

modules/misc/lua/libs/dialog.c

index 4f8a0a3652dc859d18562962e4b9a596359f313a..7a276f5b28103f7974364dc857aba2b49cb9f0a7 100644 (file)
@@ -597,7 +597,6 @@ static int vlclua_widget_set_text( lua_State *L )
         case EXTENSION_WIDGET_LIST:
         case EXTENSION_WIDGET_IMAGE:
         default:
-            vlc_mutex_unlock( &p_widget->p_dialog->lock );
             return luaL_error( L, "method set_text not valid for this widget" );
     }