diff --git a/src/frontends/ChangeLog b/src/frontends/ChangeLog index f247b65346..152d2e17ec 100644 --- a/src/frontends/ChangeLog +++ b/src/frontends/ChangeLog @@ -1,3 +1,7 @@ +2005-06-16 Jean-Marc Lasgouttes + + * Timeout.C (~Timeout): properly delete the pimpl on deletion. + 2005-05-31 Martin Vermeer * screen.[hC]: better fix, processEvents -related screen update diff --git a/src/frontends/Timeout.C b/src/frontends/Timeout.C index 99ee026f82..8a82826207 100644 --- a/src/frontends/Timeout.C +++ b/src/frontends/Timeout.C @@ -17,6 +17,7 @@ Timeout::~Timeout() { pimpl_->stop(); + delete pimpl_; } diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index f283d249a4..4c38856b20 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2005-06-16 Jean-Marc Lasgouttes + + * qfont_loader.C (addToFontPath): delete the data structure + allocated by XGetFontPath. + 2005-06-09 Jean-Marc Lasgouttes * qfont_loader.h: diff --git a/src/frontends/qt2/qfont_loader.C b/src/frontends/qt2/qfont_loader.C index affc4fe047..d325b08163 100644 --- a/src/frontends/qt2/qfont_loader.C +++ b/src/frontends/qt2/qfont_loader.C @@ -63,6 +63,7 @@ void qfont_loader::addToFontPath() char ** p = XGetFontPath(w.x11Display(), &n); if (std::find(p, p + n, dir) != p + n) return; + XFreeFontPath(p); lyxerr[Debug::FONT] << "Adding " << dir << " to the font path." << endl; string const command = "xset fp+ " + QuoteName(dir);