summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/VisualElementPackager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Android/VisualElementPackager.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/VisualElementPackager.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/VisualElementPackager.cs b/Xamarin.Forms.Platform.Android/VisualElementPackager.cs
index e6db1c6..891d438 100644
--- a/Xamarin.Forms.Platform.Android/VisualElementPackager.cs
+++ b/Xamarin.Forms.Platform.Android/VisualElementPackager.cs
@@ -33,8 +33,15 @@ namespace Xamarin.Forms.Platform.Android
public void Dispose()
{
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ protected virtual void Dispose(bool disposing)
+ {
if (_disposed)
return;
+
_disposed = true;
if (_renderer != null)