# HG changeset patch # User Michael Goffioul # Date 1375880935 14400 # Node ID 755ec7bce733e094a325fa4d8eac301d4bb348da # Parent 85e55da6140902c85e3b04ebb2725082524a9aad corefcn/graphics.cc: Fix memory leak in uicontrol::properties::update_text_extent. diff --git a/libinterp/corefcn/graphics.cc b/libinterp/corefcn/graphics.cc --- 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);