Skip to content

Commit

Permalink
fix ViewHandlerOfT dispose (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
myroot authored and rookiejava committed Sep 7, 2021
1 parent a829166 commit c93864c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Core/src/Handlers/View/ViewHandlerOfT.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,9 @@ protected virtual void Dispose(bool disposing)
{
if (disposing)
{
// Dispose managed state (managed objects)
if (WrappedNativeView is TNativeView wrapped)
{
DisconnectHandler(wrapped);
wrapped.Unrealize();
}
(this as IElementHandler)?.DisconnectHandler();
NativeView?.Unrealize();
ContainerView?.Unrealize();
}

// TODO: free unmanaged resources (unmanaged objects) and override finalizer
Expand Down

0 comments on commit c93864c

Please sign in to comment.