diff libinterp/corefcn/graphics.cc @ 17200:755ec7bce733

corefcn/graphics.cc: Fix memory leak in uicontrol::properties::update_text_extent.
author Michael Goffioul <michael.goffioul@gmail.com>
date Wed, 07 Aug 2013 09:08:55 -0400
parents e7723410ec32
children 283422a219a2
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc
+++ b/libinterp/corefcn/graphics.cc
@@ -7527,6 +7527,7 @@
                           get_fontsize ());
 #endif
   box = text_renderer.get_extent (elt, 0);
+  delete elt;
 
   Matrix ext (1, 4, 0.0);