Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-149

Add Dispose() methods to dispose additional objects which are no visual children

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0-alpha.1
    • None
    • Skin Engine
    • None

    Description

      The Dispose method, which is inherited from UIElement, automatically disposes all children which are returned from derived classes as virtual children. But additional objects like the Setter's Value or additional DataTemplates, which all also potentially contain disposable objects, aren't disposed currently.

      h4. Additional Information
      What is to do?
      Check all classes in SkinEngine.Controls and SpecialControls for properties which are not part of the visual tree and which are not correctly disposed. Call UIElement.TryCleanupAndDispose for them in the Dispose method.

      Attachments

        Activity

          People

            Albert78 Daniel Hoeh (Inactive)
            Albert78 Daniel Hoeh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: