By accident, I saw your message with the following code: > string const & LyXLayout::name() const >{ > string * name = new string(lowercase(name_)); > return * name; >}
This code produces a memory leak each time it is invoked! Using a static function variable could help but it is not safe, too! IMHO you should definitely return a real copy of the string! What's wrong with that? Michael