mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +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();
|
Disposables.Clear();
|
||||||
|
|
||||||
Workshop.Dispose();
|
if ( Workshop != null )
|
||||||
Workshop = null;
|
{
|
||||||
|
Workshop.Dispose();
|
||||||
|
Workshop = null;
|
||||||
|
}
|
||||||
|
|
||||||
Inventory.Dispose();
|
if ( Inventory != null )
|
||||||
Inventory = null;
|
{
|
||||||
|
Inventory.Dispose();
|
||||||
|
Inventory = null;
|
||||||
|
}
|
||||||
|
|
||||||
Networking.Dispose();
|
if ( Networking != null )
|
||||||
Networking = null;
|
{
|
||||||
|
Networking.Dispose();
|
||||||
|
Networking = null;
|
||||||
|
}
|
||||||
|
|
||||||
if ( native != null )
|
if ( native != null )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user