Add Dispose during Pop
authorLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Fri, 3 Apr 2020 13:03:12 +0000 (15:03 +0200)
committerLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Fri, 3 Apr 2020 13:03:12 +0000 (15:03 +0200)
Properly clean resource after page is popped.

Oobe/Oobe/Controls/ViewStack.cs

index d0fd7a0c2d5311ff41389db50d0cd8c770d6d85c..61fc15356ccd533b3e21630943482a9a0f669d09 100644 (file)
@@ -149,6 +149,7 @@ namespace Oobe.Controls
                 // hide view to resolve issue with rendering artifacts
                 view.Hide();
                 Remove(view);
+                view.Dispose();
             }
             viewsToRemove.Clear();
         }
@@ -225,4 +226,4 @@ namespace Oobe.Controls
         }
 
     }
-}
\ No newline at end of file
+}