Removed unsafe disposing. Seems it's not leaking anymore. Why? Dunno

This commit is contained in:
Aragas 2016-09-16 17:19:44 +03:00
parent d85bc95931
commit 850e2a3272
12 changed files with 0 additions and 68 deletions

View File

@ -97,7 +97,4 @@
End If
End Sub
Protected Overrides Sub Finalize()
CanvasTexture1.Dispose()
End Sub
End Class

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -326,11 +326,4 @@
ChangeBag()
End Sub
Protected Overrides Sub Finalize()
texture1.Dispose()
texture2.Dispose()
texture3.Dispose()
texture4.Dispose()
End Sub
End Class

View File

@ -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

View File

@ -279,8 +279,4 @@
MusicManager.ForceVolumeUpdate()
End Sub
Protected Overrides Sub Finalize()
CanvasTexture1.Dispose()
CanvasTexture2.Dispose()
End Sub
End Class

View File

@ -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

View File

@ -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

View File

@ -216,8 +216,4 @@
End If
End Sub
Protected Overrides Sub Finalize()
texture1.Dispose()
End Sub
End Class

View File

@ -127,8 +127,4 @@
End If
End Sub
Protected Overrides Sub Finalize()
CanvasTexture1.Dispose()
End Sub
End Class

View File

@ -195,8 +195,4 @@
End If
End Sub
Protected Overrides Sub Finalize()
CanvasTexture1.Dispose()
End Sub
End Class