summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkImage.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/ttk/ttkImage.c')
-rw-r--r--generic/ttk/ttkImage.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/generic/ttk/ttkImage.c b/generic/ttk/ttkImage.c
index 130fcee..4d80f48 100644
--- a/generic/ttk/ttkImage.c
+++ b/generic/ttk/ttkImage.c
@@ -1,4 +1,4 @@
-/* $Id: ttkImage.c,v 1.2 2006/11/03 03:06:22 das Exp $
+/* $Id: ttkImage.c,v 1.3 2006/11/27 06:53:55 jenglish Exp $
* Ttk widget set -- image element factory.
*
* Copyright (C) 2004 Pat Thoyts <patthoyts@users.sf.net>
@@ -109,18 +109,10 @@ static void FreeImageData(void *clientData)
{
ImageData *imageData = clientData;
Tcl_DecrRefCount(imageData->baseImage);
- if (imageData->imageMap) {
- Tcl_DecrRefCount(imageData->imageMap);
- }
- if (imageData->stickyObj) {
- Tcl_DecrRefCount(imageData->stickyObj);
- }
- if (imageData->borderObj) {
- Tcl_DecrRefCount(imageData->borderObj);
- }
- if (imageData->paddingObj) {
- Tcl_DecrRefCount(imageData->paddingObj);
- }
+ if (imageData->imageMap) { Tcl_DecrRefCount(imageData->imageMap); }
+ if (imageData->stickyObj) { Tcl_DecrRefCount(imageData->stickyObj); }
+ if (imageData->borderObj) { Tcl_DecrRefCount(imageData->borderObj); }
+ if (imageData->paddingObj) { Tcl_DecrRefCount(imageData->paddingObj); }
ckfree(clientData);
}