Beispiel #1
0
//------------------------------------------------------------------------
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;
}
Beispiel #2
0
	bool DllExport ExitDll ()  ///< must be called from host right before unloading dll
	{ 
		return DeinitModule (); 
	}