Clear bots array upon meta unload.
This commit is contained in:
parent
0f23ef8e4f
commit
b3e9024fb5
2 changed files with 5 additions and 5 deletions
|
|
@ -19,7 +19,6 @@ ifeq "$(DEBUG)" "true"
|
||||||
else
|
else
|
||||||
COMPILER_FLAGS += -pipe -O3 -march=core2 -msse2 -mfpmath=sse -fno-builtin -fno-threadsafe-statics -funroll-loops -fomit-frame-pointer -fno-stack-protector -fvisibility=hidden -fvisibility-inlines-hidden
|
COMPILER_FLAGS += -pipe -O3 -march=core2 -msse2 -mfpmath=sse -fno-builtin -fno-threadsafe-statics -funroll-loops -fomit-frame-pointer -fno-stack-protector -fvisibility=hidden -fvisibility-inlines-hidden
|
||||||
BINARY_DIR = release
|
BINARY_DIR = release
|
||||||
LINKER_FLAGS += -static-libgcc
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
INCLUDE = -I../include
|
INCLUDE = -I../include
|
||||||
|
|
@ -35,15 +34,13 @@ ifeq "$(OSX)" "true"
|
||||||
LINKER_FLAGS += -dynamiclib -lstdc++ -mmacosx-version-min=10.9 -arch i386
|
LINKER_FLAGS += -dynamiclib -lstdc++ -mmacosx-version-min=10.9 -arch i386
|
||||||
else
|
else
|
||||||
LIBRARY_EXT = so
|
LIBRARY_EXT = so
|
||||||
LINKER_FLAGS += -shared
|
LINKER_FLAGS += -shared -static-libgcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BINARY_OUTPUT = $(PROJECT).$(LIBRARY_EXT)
|
BINARY_OUTPUT = $(PROJECT).$(LIBRARY_EXT)
|
||||||
|
|
||||||
ifeq ($(findstring clang,$(COMPILER)),clang)
|
ifeq ($(findstring clang,$(COMPILER)),clang)
|
||||||
ifeq "$(OSX)" "false"
|
ifneq "$(OSX)" "false"
|
||||||
LINKER_FLAGS += -lgcc_eh
|
|
||||||
else
|
|
||||||
ifeq "$(DEBUG)" "true"
|
ifeq "$(DEBUG)" "true"
|
||||||
LINKER_FLAGS += -lstdc++
|
LINKER_FLAGS += -lstdc++
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -893,6 +893,9 @@ CR_EXPORT int Meta_Detach (PLUG_LOADTIME now, PL_UNLOAD_REASON reason) {
|
||||||
graph.savePractice ();
|
graph.savePractice ();
|
||||||
util.disableSendTo ();
|
util.disableSendTo ();
|
||||||
|
|
||||||
|
// make sure all stuff cleared
|
||||||
|
bots.destroy ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue