diff options
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index e643143b..82a928b4 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -372,11 +372,6 @@ SubImage::SubImage(Image *parent, SDL_Texture *texture, Image(texture, width, height), mParent(parent) { - if (mParent) - { - mParent->incRef(); - } - // Set up the rectangle. mBounds.x = x; mBounds.y = y; @@ -391,8 +386,6 @@ SubImage::SubImage(Image *parent, GLuint image, Image(image, width, height, texWidth, texHeight), mParent(parent) { - mParent->incRef(); - // Set up the rectangle. mBounds.x = x; mBounds.y = y; @@ -408,5 +401,4 @@ SubImage::~SubImage() #ifdef USE_OPENGL mGLImage = 0; #endif - mParent->decRef(); } |