summaryrefslogtreecommitdiff
path: root/src/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/file.c b/src/file.c
index 368961b..de78b05 100644
--- a/src/file.c
+++ b/src/file.c
@@ -47,8 +47,7 @@ XcursorImageCreate (int width, int height)
void
XcursorImageDestroy (XcursorImage *image)
{
- if (image)
- free (image);
+ free (image);
}
XcursorImages *
@@ -121,8 +120,7 @@ XcursorCommentCreate (XcursorUInt comment_type, int length)
void
XcursorCommentDestroy (XcursorComment *comment)
{
- if (!comment)
- free (comment);
+ free (comment);
}
XcursorComments *
@@ -205,8 +203,7 @@ _XcursorWriteBytes (XcursorFile *file, char *bytes, int length)
static void
_XcursorFileHeaderDestroy (XcursorFileHeader *fileHeader)
{
- if (!fileHeader)
- free (fileHeader);
+ free (fileHeader);
}
static XcursorFileHeader *