Skip to content

Unsubscribe ImageCropper's Application.Idle handler on Dispose#1532

Draft
imnasnainaec wants to merge 1 commit into
masterfrom
fix/image-cropper-idle-unsubscribe
Draft

Unsubscribe ImageCropper's Application.Idle handler on Dispose#1532
imnasnainaec wants to merge 1 commit into
masterfrom
fix/image-cropper-idle-unsubscribe

Conversation

@imnasnainaec

@imnasnainaec imnasnainaec commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

ImageCropper subscribed to the static Application.Idle event in its constructor but never unsubscribed in Dispose, so the handler could still fire after the control was disposed.

Added tests is a smoke test that passes even without this fix. A true regression unit test is harder to produce.


This change is Reviewable

ImageCropper subscribed to the static Application.Idle event in its
constructor but never unsubscribed in Dispose, so the handler could still
fire after the control was disposed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@imnasnainaec imnasnainaec self-assigned this Jul 13, 2026
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Palaso Tests

     4 files  ±0       4 suites  ±0   9m 54s ⏱️ +16s
 5 104 tests +1   4 870 ✅ +1  234 💤 ±0  0 ❌ ±0 
16 624 runs  +3  15 903 ✅ +3  721 💤 ±0  0 ❌ ±0 

Results for commit 0f9e025. ± Comparison against base commit ba68a4a.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant