Improved error message for handle leakage (bug 3646, r,a12=dvander).

This commit is contained in:
Fyren 2009-03-01 16:43:48 -05:00
parent e04d2a4a10
commit 98c1a18e57

View File

@ -996,7 +996,7 @@ bool HandleSystem::TryAndFreeSomeHandles()
}
g_Logger.LogFatal("[SM] MEMORY LEAK DETECTED IN PLUGIN (file \"%s\")", highest_owner->GetFilename());
g_Logger.LogFatal("[SM] Reloading plugin to free %d handles.", highest_handle_count);
g_Logger.LogFatal("[SM] Unloading plugin to free %d handles.", highest_handle_count);
g_Logger.LogFatal("[SM] Contact the author(s) of this plugin to correct this error.", highest_handle_count);
highest_owner->GetBaseContext()->ThrowNativeErrorEx(SP_ERROR_MEMACCESS, "Memory leak");