summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-01-23 14:39:01 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-01-23 14:39:01 (GMT)
commit71e4dd05509ede321087862d29a20a03b2eb9d4c (patch)
tree307bc4be8f815509ed804d56fce63643abfba70a /generic/tkTextDisp.c
parentd93dfc8852354aa742c935c347c42fd181a985c0 (diff)
downloadtk-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.c2
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);