diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-06-26 15:49:53 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-06-26 15:49:53 +0200 |
commit | eaf36766f60662a0aa7829ae3d96f47fd91b408d (patch) | |
tree | 3075c09f947dfbaff163c405c74f518a8064ea89 /src/Bindings | |
parent | derp (diff) | |
parent | Merge pull request #1126 from mc-server/BlockInfoInit (diff) | |
download | cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.tar cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.tar.gz cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.tar.bz2 cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.tar.lz cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.tar.xz cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.tar.zst cuberite-eaf36766f60662a0aa7829ae3d96f47fd91b408d.zip |
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 1 | ||||
-rw-r--r-- | src/Bindings/PluginLua.cpp | 1 | ||||
-rw-r--r-- | src/Bindings/PluginManager.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index acfd6f4f8..f52d970bf 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -1765,6 +1765,7 @@ static int tolua_cWorld_ChunkStay(lua_State * tolua_S) if (!ChunkStay->AddChunks(2)) { delete ChunkStay; + ChunkStay = NULL; return 0; } diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 04639da60..96c5ccde7 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -1571,6 +1571,7 @@ bool cPluginLua::AddHookRef(int a_HookType, int a_FnRefIdx) LOGWARNING("Plugin %s tried to add a hook %d with bad handler function.", GetName().c_str(), a_HookType); m_LuaState.LogStackTrace(); delete Ref; + Ref = NULL; return false; } diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 9bcd8e3b7..c50100d6f 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -1467,6 +1467,7 @@ void cPluginManager::RemovePlugin(cPlugin * a_Plugin) a_Plugin->OnDisable(); } delete a_Plugin; + a_Plugin = NULL; } |