---
 src/graphics/GraphicsCacheItem.cpp | 1 -
 src/graphics/GraphicsCacheItem.h   | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/graphics/GraphicsCacheItem.cpp 
b/src/graphics/GraphicsCacheItem.cpp
index fafa78b..60477cc 100644
--- a/src/graphics/GraphicsCacheItem.cpp
+++ b/src/graphics/GraphicsCacheItem.cpp
@@ -130,7 +130,6 @@ CacheItem::CacheItem(FileName const & file)
 
 CacheItem::~CacheItem()
 {
-       delete pimpl_;
 }
 
 
diff --git a/src/graphics/GraphicsCacheItem.h b/src/graphics/GraphicsCacheItem.h
index 481e4b1..51f97d5 100644
--- a/src/graphics/GraphicsCacheItem.h
+++ b/src/graphics/GraphicsCacheItem.h
@@ -31,6 +31,7 @@
 #include "GraphicsTypes.h"
 
 #include <boost/signal.hpp>
+#include <boost/smart_ptr/scoped_ptr.hpp>
 
 
 namespace lyx {
@@ -98,7 +99,7 @@ private:
        /// Use the Pimpl idiom to hide the internals.
        class Impl;
        /// The pointer never changes although *pimpl_'s contents may.
-       Impl * const pimpl_;
+       boost::scoped_ptr<Impl> const pimpl_;
 };
 
 } // namespace graphics
-- 
1.8.0.rc3.16.g8ead1bf


Reply via email to