deps/obs-scripting: Don't crash obs trying to unload a script that failed to load
This commit is contained in:
parent
da7b8c79a2
commit
1b49a0541e
2
deps/obs-scripting/obs-scripting-lua.c
vendored
2
deps/obs-scripting/obs-scripting-lua.c
vendored
@ -206,7 +206,7 @@ fail:
|
||||
pthread_mutex_unlock(&data->mutex);
|
||||
}
|
||||
|
||||
if (!success) {
|
||||
if (!success && script) {
|
||||
lua_close(script);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user