]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (Fwindow_text_pixel_size): Plug memory leak. (Bug#48884)
authorEli Zaretskii <eliz@gnu.org>
Mon, 7 Jun 2021 12:03:06 +0000 (15:03 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 9 Jun 2021 12:35:38 +0000 (15:35 +0300)
(cherry picked from commit 69a65212a233333ab0605374b4985ead23f4a541)

src/xdisp.c

index 77c9af747c3cad0a5006ccfc7c115a3e3929633d..8dcecc2be65f5f51c739db5263f367b17f442e24 100644 (file)
@@ -10592,6 +10592,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.  */