--- src/graphics/GraphicsLoader.cpp | 1 - src/graphics/GraphicsLoader.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/graphics/GraphicsLoader.cpp b/src/graphics/GraphicsLoader.cpp index bd81a50..8f3a4cf 100644 --- a/src/graphics/GraphicsLoader.cpp +++ b/src/graphics/GraphicsLoader.cpp @@ -230,7 +230,6 @@ Loader::Loader(Loader const & other) Loader::~Loader() { - delete pimpl_; } diff --git a/src/graphics/GraphicsLoader.h b/src/graphics/GraphicsLoader.h index 6521850..3258726 100644 --- a/src/graphics/GraphicsLoader.h +++ b/src/graphics/GraphicsLoader.h @@ -27,6 +27,7 @@ #include "GraphicsTypes.h" #include <boost/signal.hpp> +#include <boost/smart_ptr/scoped_ptr.hpp> namespace lyx { @@ -105,7 +106,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