Skip to content

Commit

Permalink
(slightly modified) proposed fix for [3981091ed3]: Segmentation fault…
Browse files Browse the repository at this point in the history
… with bogus resource value (X11)
  • Loading branch information
jan.nijtmans committed Sep 20, 2024
1 parent 116741c commit d8be6f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generic/ttk/ttkTheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,10 @@ void Ttk_TkDestroyedHandler(
StylePackageData* pkgPtr = GetStylePackageData(interp);

/*
* Cancel any pending ThemeChanged calls:
* Cancel any pending ThemeChanged calls. We might be called
* before Ttk is initialized. See bug [3981091ed336].
*/
if (pkgPtr->themeChangePending) {
if (pkgPtr && pkgPtr->themeChangePending) {
Tcl_CancelIdleCall(ThemeChangedProc, pkgPtr);
}
}
Expand Down

0 comments on commit d8be6f2

Please sign in to comment.