std:std.resource.SafeDiscard

Function SafeDiscard:Void( r:Resource )

Safely discards a resource.

Invoke Resource.Discard on the given resource r only if r is non-null.