diff options
author | fvogel <fvogelnew1@free.fr> | 2022-01-23 14:39:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2022-01-23 14:39:01 (GMT) |
commit | 71e4dd05509ede321087862d29a20a03b2eb9d4c (patch) | |
tree | 307bc4be8f815509ed804d56fce63643abfba70a /generic/tkTextDisp.c | |
parent | d93dfc8852354aa742c935c347c42fd181a985c0 (diff) | |
download | tk-71e4dd05509ede321087862d29a20a03b2eb9d4c.zip tk-71e4dd05509ede321087862d29a20a03b2eb9d4c.tar.gz tk-71e4dd05509ede321087862d29a20a03b2eb9d4c.tar.bz2 |
Don't use return in DisplayText but 'goto end' so that Tcl_Preserve / Tcl_Release calls keep being balanced.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 4411211..66f6236 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -4511,7 +4511,7 @@ DisplayText( #ifndef TK_NO_DOUBLE_BUFFERING Tk_FreePixmap(Tk_Display(textPtr->tkwin), pixmap); #endif /* TK_NO_DOUBLE_BUFFERING */ - return; + goto end; } dlPtr->oldY = dlPtr->y; dlPtr->flags &= ~(NEW_LAYOUT | OLD_Y_INVALID); |