diff --git a/src/lib/tvgPicture.cpp b/src/lib/tvgPicture.cpp index 52f73cbb..1d977636 100644 --- a/src/lib/tvgPicture.cpp +++ b/src/lib/tvgPicture.cpp @@ -26,7 +26,7 @@ /* External Class Implementation */ /************************************************************************/ -Picture::Picture() : pImpl(new Impl(this)) +Picture::Picture() : pImpl(new Impl) { Paint::pImpl->id = TVG_CLASS_ID_PICTURE; Paint::pImpl->method(new PaintMethod(pImpl)); diff --git a/src/lib/tvgPictureImpl.h b/src/lib/tvgPictureImpl.h index 794363fe..2e274714 100644 --- a/src/lib/tvgPictureImpl.h +++ b/src/lib/tvgPictureImpl.h @@ -63,16 +63,10 @@ struct Picture::Impl Paint* paint = nullptr; //vector picture uses Surface* surface = nullptr; //bitmap picture uses - - Picture* picture = nullptr; void* rdata = nullptr; //engine data float w = 0, h = 0; bool resizing = false; - Impl(Picture* p) : picture(p) - { - } - ~Impl() { if (paint) delete(paint);