summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhInstance.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-29 16:08:12 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-29 16:08:12 (GMT)
commit5f9bf4fde729afc768b4c4b30fa778dc6f637605 (patch)
tree7dae4b8708bb19be78dd5daaafe941d7d5b6128b /generic/tkImgPhInstance.c
parent5be70aeb76c7c6ba94c9288632ddf1c094108f0e (diff)
parentbc6a00f386a42a918f7ea3907a7899419680c3d4 (diff)
downloadtk-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.c3
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;
}