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

diff --git a/src/graphics/GraphicsCache.cpp b/src/graphics/GraphicsCache.cpp
index d508563..f9eee10 100644
--- a/src/graphics/GraphicsCache.cpp
+++ b/src/graphics/GraphicsCache.cpp
@@ -59,7 +59,6 @@ Cache::Cache()
 
 Cache::~Cache()
 {
-       delete pimpl_;
 }
 
 
diff --git a/src/graphics/GraphicsCache.h b/src/graphics/GraphicsCache.h
index e6d810f..c66f72f 100644
--- a/src/graphics/GraphicsCache.h
+++ b/src/graphics/GraphicsCache.h
@@ -22,6 +22,8 @@
 
 #include "support/shared_ptr.h"
 
+#include <boost/smart_ptr/scoped_ptr.hpp>
+
 #include <vector>
 #include <string>
 
@@ -84,7 +86,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> pimpl_;
 };
 
 } // namespace graphics
-- 
1.8.0.rc3.16.g8ead1bf


Reply via email to