GeoIP dispose fix

This commit is contained in:
Lucas Nicodemus 2011-12-21 13:09:28 -07:00
parent 0cdafc0e81
commit 5d3f5eed90
2 changed files with 6 additions and 3 deletions

View file

@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.4.0.1221")]
[assembly: AssemblyFileVersion("3.4.0.1221")]
[assembly: AssemblyVersion("3.4.1.1221")]
[assembly: AssemblyFileVersion("3.4.1.1221")]

View file

@ -295,7 +295,10 @@ namespace TShockAPI
{
if (disposing)
{
Geo.Dispose();
if (Geo != null)
{
Geo.Dispose();
}
GameHooks.PostInitialize -= OnPostInit;
GameHooks.Update -= OnUpdate;
ServerHooks.Join -= OnJoin;