I have doubt regarding Xamarin.Forms MainPage property in terms of memory leak.
Say for instance I started my application with LoginPage
App.cs
MainPage = new LoginPage();
After successful login, LoginPage.cs
MainPage = new NavigationPage(new HomePage());
What happens with LoginPage instance? Is that remains in memory until garbage collector collects it, or it gets destructed?