mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Removed unsafe disposing. Seems it's not leaking anymore. Why? Dunno
This commit is contained in:
parent
d85bc95931
commit
850e2a3272
@ -97,7 +97,4 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
CanvasTexture1.Dispose()
|
||||
End Sub
|
||||
End Class
|
@ -522,10 +522,4 @@
|
||||
Return startTime + duration < Date.Now
|
||||
End Function
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
If Not IsNothing(blurTexture)
|
||||
blurTexture.Dispose()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -73,9 +73,4 @@
|
||||
Core.SpriteBatch.DrawString(FontManager.MainFont, Localization.GetString("donation_screen_backadvice"), New Vector2(CInt(Core.windowSize.Width / 2) - FontManager.MainFont.MeasureString("Press E to close").X / 2, 640), Color.White)
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
texture2.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -358,12 +358,4 @@
|
||||
Me.moveLearnArg = arg
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
BorderTexture1.Dispose()
|
||||
BorderTexture2.Dispose()
|
||||
BorderTexture3.Dispose()
|
||||
BorderTexture4.Dispose()
|
||||
BorderTexture5.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -326,11 +326,4 @@
|
||||
ChangeBag()
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
texture2.Dispose()
|
||||
texture3.Dispose()
|
||||
texture4.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -198,9 +198,4 @@
|
||||
MenuItems.Add(Localization.GetString("item_detail_screen_back"))
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
CanvasTexture1.Dispose()
|
||||
CanvasTexture2.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -279,8 +279,4 @@
|
||||
MusicManager.ForceVolumeUpdate()
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
CanvasTexture1.Dispose()
|
||||
CanvasTexture2.Dispose()
|
||||
End Sub
|
||||
End Class
|
@ -551,8 +551,4 @@
|
||||
Return Localization.GetString("new_game_oak_name_1") & name & Localization.GetString("new_game_oak_name_2")
|
||||
End Function
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
texture2.Dispose()
|
||||
End Sub
|
||||
End Class
|
@ -541,11 +541,6 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
texture2.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Class CommandButton
|
||||
@ -627,11 +622,6 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
texture2.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Class ScrollBar
|
||||
@ -813,8 +803,4 @@
|
||||
|
||||
#End Region
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -216,8 +216,4 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
texture1.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -127,8 +127,4 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
CanvasTexture1.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
@ -195,8 +195,4 @@
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub Finalize()
|
||||
CanvasTexture1.Dispose()
|
||||
End Sub
|
||||
|
||||
End Class
|
Loading…
x
Reference in New Issue
Block a user