GraphicsCacheItem_pimpl::~GraphicsCacheItem_pimpl()
{
- if (imageStatus_ == GraphicsCacheItem::Loaded) {
- XFreePixmap(fl_get_display(), pixmap_);
- }
+ delete pixmap_;
delete renderer;
}
temp = ChangeExtension(filename, string());
// Add some stuff to have it a unique temp file.
- xpmfile = TmpFileName(string(), temp);
+ xpmfile = lyx::tempName(string(), temp); //TmpFileName(string(), temp);
xpmfile = ChangeExtension(xpmfile, ".xpm");
command += xpmfile;