diff options
author | fvogel <fvogelnew1@free.fr> | 2017-01-29 16:08:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-01-29 16:08:12 (GMT) |
commit | 5f9bf4fde729afc768b4c4b30fa778dc6f637605 (patch) | |
tree | 7dae4b8708bb19be78dd5daaafe941d7d5b6128b /generic/tkImgPhInstance.c | |
parent | 5be70aeb76c7c6ba94c9288632ddf1c094108f0e (diff) | |
parent | bc6a00f386a42a918f7ea3907a7899419680c3d4 (diff) | |
download | tk-5f9bf4fde729afc768b4c4b30fa778dc6f637605.zip tk-5f9bf4fde729afc768b4c4b30fa778dc6f637605.tar.gz tk-5f9bf4fde729afc768b4c4b30fa778dc6f637605.tar.bz2 |
Merge core-8-6-branch
Diffstat (limited to 'generic/tkImgPhInstance.c')
-rw-r--r-- | generic/tkImgPhInstance.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkImgPhInstance.c b/generic/tkImgPhInstance.c index bd152f2..98aaeab 100644 --- a/generic/tkImgPhInstance.c +++ b/generic/tkImgPhInstance.c @@ -721,8 +721,7 @@ TkImgPhotoFree( PhotoInstance *instancePtr = clientData; ColorTable *colorPtr; - instancePtr->refCount -= 1; - if (instancePtr->refCount > 0) { + if (instancePtr->refCount-- > 1) { return; } |