core/systems/HandleSys.cpp
branchrefac-jit
changeset 2175 54a8411faaac
parent 2168 c24a6fa957db
child 2289 44045ead61cd
     1.1 --- a/core/systems/HandleSys.cpp	Mon Jul 07 06:24:54 2008 +0000
     1.2 +++ b/core/systems/HandleSys.cpp	Mon Jul 07 06:25:15 2008 +0000
     1.3 @@ -990,7 +990,7 @@
     1.4  	g_Logger.LogFatal("[SM] Reloading plugin to free %d handles.", highest_handle_count);
     1.5  	g_Logger.LogFatal("[SM] Contact the author(s) of this plugin to correct this error.", highest_handle_count);
     1.6  
     1.7 -	highest_owner->GetContext()->n_err = SP_ERROR_MEMACCESS;
     1.8 +	highest_owner->GetBaseContext()->ThrowNativeErrorEx(SP_ERROR_MEMACCESS, "Memory leak");
     1.9  
    1.10  	return g_PluginSys.UnloadPlugin(highest_owner);
    1.11  }