Skip to content

Instantly share code, notes, and snippets.

@jonathanpeppers
Last active June 30, 2023 16:39
Show Gist options
  • Save jonathanpeppers/ed0058fdd06ed59eb937a0e2db89483c to your computer and use it in GitHub Desktop.
Save jonathanpeppers/ed0058fdd06ed59eb937a0e2db89483c to your computer and use it in GitHub Desktop.
Is this a memory leak?

Consider the XAML:

<VerticalStackLayout>
  <Image Source="foo.png" />
</VerticalStackLayout>
  graph TD;
      VerticalStackLayout-->Image;
      Image-->VerticalStackLayout;
      Image-->ImageHandler;
      ImageHandler-->Image;
      ImageHandler-->MauiImageView:UIImageView;
      VerticalStackLayout-->LayoutHandler;
      LayoutHandler-->LayoutView:UIView;
      LayoutHandler-->VerticalStackLayout;
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment