mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fix a potential crash when a Thread ends (resolves issue #1219).
This commit is contained in:
@@ -43,7 +43,6 @@ LuaThread::~LuaThread()
|
||||
|
||||
void LuaThread::threadFunction()
|
||||
{
|
||||
this->retain();
|
||||
error.clear();
|
||||
|
||||
lua_State *L = luaL_newstate();
|
||||
@@ -83,8 +82,6 @@ void LuaThread::threadFunction()
|
||||
|
||||
if (!error.empty())
|
||||
onError();
|
||||
|
||||
this->release();
|
||||
}
|
||||
|
||||
bool LuaThread::start(const std::vector<Variant> &args)
|
||||
|
||||
Reference in New Issue
Block a user