//------------------------------------------------------------------------ bool bundleExit (void) { if (DeinitModule ()) { if (--bundleRefCounter == 0) { // release the CFBundleRef's once all bundleExit clients called in // there is no way to identify the proper CFBundleRef of the bundleExit call for (size_t i = 0; i < gBundleRefs.size(); i++) CFRelease (gBundleRefs[i]); gBundleRefs.clear(); } return true; } return false; }
bool DllExport ExitDll () ///< must be called from host right before unloading dll { return DeinitModule (); }