mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Null ref checks on dispose
This commit is contained in:
parent
5d23345955
commit
b4c48242cb
@ -25,14 +25,23 @@ public virtual void Dispose()
|
||||
}
|
||||
Disposables.Clear();
|
||||
|
||||
Workshop.Dispose();
|
||||
Workshop = null;
|
||||
if ( Workshop != null )
|
||||
{
|
||||
Workshop.Dispose();
|
||||
Workshop = null;
|
||||
}
|
||||
|
||||
Inventory.Dispose();
|
||||
Inventory = null;
|
||||
if ( Inventory != null )
|
||||
{
|
||||
Inventory.Dispose();
|
||||
Inventory = null;
|
||||
}
|
||||
|
||||
Networking.Dispose();
|
||||
Networking = null;
|
||||
if ( Networking != null )
|
||||
{
|
||||
Networking.Dispose();
|
||||
Networking = null;
|
||||
}
|
||||
|
||||
if ( native != null )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user