plug two memory leaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10069 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-06-16 09:44:13 +00:00
parent 46a0ca5671
commit 810fbe89aa
4 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-06-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* Timeout.C (~Timeout): properly delete the pimpl on deletion.
2005-05-31 Martin Vermeer <martin.vermeer@hut.fi> 2005-05-31 Martin Vermeer <martin.vermeer@hut.fi>
* screen.[hC]: better fix, processEvents -related screen update * screen.[hC]: better fix, processEvents -related screen update

View File

@ -17,6 +17,7 @@
Timeout::~Timeout() Timeout::~Timeout()
{ {
pimpl_->stop(); pimpl_->stop();
delete pimpl_;
} }

View File

@ -1,3 +1,8 @@
2005-06-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* qfont_loader.C (addToFontPath): delete the data structure
allocated by XGetFontPath.
2005-06-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2005-06-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* qfont_loader.h: * qfont_loader.h:

View File

@ -63,6 +63,7 @@ void qfont_loader::addToFontPath()
char ** p = XGetFontPath(w.x11Display(), &n); char ** p = XGetFontPath(w.x11Display(), &n);
if (std::find(p, p + n, dir) != p + n) if (std::find(p, p + n, dir) != p + n)
return; return;
XFreeFontPath(p);
lyxerr[Debug::FONT] << "Adding " << dir lyxerr[Debug::FONT] << "Adding " << dir
<< " to the font path." << endl; << " to the font path." << endl;
string const command = "xset fp+ " + QuoteName(dir); string const command = "xset fp+ " + QuoteName(dir);