diff src/graphics.cc @ 11259:fe11e2b9d48a

eliminate text engine memory leak
author John W. Eaton <jwe@octave.org>
date Wed, 17 Nov 2010 03:04:03 -0500
parents 830b940e7ff4
children 58f175d39a7a
line wrap: on
line diff
--- a/src/graphics.cc	Wed Nov 17 02:40:43 2010 -0500
+++ b/src/graphics.cc	Wed Nov 17 03:04:03 2010 -0500
@@ -5043,6 +5043,8 @@
 #endif
   box = text_renderer.get_extent (elt, get_rotation ());
 
+  delete elt;
+
   Matrix ext (1, 4, 0.0);
 
   // FIXME: also handle left and bottom components