-
-
Notifications
You must be signed in to change notification settings - Fork 253
OneMoreCalendar: fix GDI-leaks #2196
Copy link
Copy link
Closed
Labels
enhancementGood ol' fashioned programmin! Not user-requestedGood ol' fashioned programmin! Not user-requestedreleasedAvailable in a released installerAvailable in a released installer
Metadata
Metadata
Assignees
Labels
enhancementGood ol' fashioned programmin! Not user-requestedGood ol' fashioned programmin! Not user-requestedreleasedAvailable in a released installerAvailable in a released installer
Batch fix for six confirmed crash / data-corruption / resource-leak bugs found during a code review of the OneMoreCalendar project.
Issues
BitmapExtensions.MapColormutates shared resource bitmaps — permanently recolors embedded resource bitmaps; icon colors are wrong after the second theme toggle.SnappedPageSTA deadlock —Task.Run(...).Resultblocks the STA UI thread while OneNote COM marshals back to it, freezing the window.page.Hyperlinknull-deref inClickCopyPageButton— whenGetPageLinksleaves a page withHyperlink = null(COM error), the nextStartsWithcall crashes and aborts the clipboard write.Notebookconstructor NPE on missing XML attributes — notebooks with nocolorattribute throwNullReferenceException, crashing the Settings dialog.SettingsProvider.Themecrashes on unrecognized enum value —Enum.ParsethrowsArgumentExceptionon hand-edited or future-version XML, crashing form load.YearsForm.HoverMouseleaks GDI handles — twoCreateGraphics()objects are never disposed; rapid mouse movement accumulates unreleased HDC handles.