Skip to content

Commit

Permalink
Fix a possible cause of 'System.ObjectDisposedException'
Browse files Browse the repository at this point in the history
  • Loading branch information
Equbuxu committed Dec 2, 2023
1 parent f09eeef commit da84769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PixiEditor/Models/Controllers/MouseUpdateController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private void OnMouseMove(object sender, MouseEventArgs e)

public void Dispose()
{
_timer.Dispose();
element.MouseMove -= OnMouseMove;
_timer.Dispose();
}
}

0 comments on commit da84769

Please sign in to comment.