From 69a65212a233333ab0605374b4985ead23f4a541 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 7 Jun 2021 15:03:06 +0300 Subject: [PATCH] * src/xdisp.c (Fwindow_text_pixel_size): Plug memory leak. (Bug#48884) --- src/xdisp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index e761ef8b37c..6854fa03fe8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -10795,6 +10795,9 @@ include the height of both, if present, in the return value. */) it.max_descent = max (it.max_descent, it.descent); } } + else + bidi_unshelve_cache (it2data, true); + if (!NILP (x_limit)) { /* Don't return more than X-LIMIT. */ -- 2.39.5