Mercurial > octave
diff src/txt-eng.h @ 11259:fe11e2b9d48a
eliminate text engine memory leak
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Nov 2010 03:04:03 -0500 |
parents | f3b65e1ae355 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/src/txt-eng.h Wed Nov 17 02:40:43 2010 -0500 +++ b/src/txt-eng.h Wed Nov 17 03:04:03 2010 -0500 @@ -179,6 +179,11 @@ ~text_parser_none (void) { } + // FIXME: is it possible to use reference counting to manage the + // memory for the object returned by the text parser? That would be + // preferable to having to know when and where to delete the object it + // creates... + text_element* parse (const std::string& s) { return new text_element_string (s);