diff options
author | TORRI Vincent <torri@doursse.(none)> | 2006-04-28 20:49:15 +0200 |
---|---|---|
committer | TORRI Vincent <torri@doursse.(none)> | 2006-04-28 20:49:15 +0200 |
commit | 45ce2d87538619442dd1a1646429573d97f8d408 (patch) | |
tree | 76604fb60c4b29d94619ac7125f653581a8ec601 | |
parent | cada5947575ff5b440a39897a83a251d701fafac (diff) |
leak fixed
-rw-r--r-- | image/xcb_image.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/image/xcb_image.c b/image/xcb_image.c index 93b7879..bda4dab 100644 --- a/image/xcb_image.c +++ b/image/xcb_image.c @@ -479,7 +479,12 @@ XCBImageSHMGet (XCBConnection *conn, /* but i don't use it */ /* So, should we remove it ? */ - return 1; + if (!rep) + return 0; + else { + free (rep); + return 1; + } } /* GetPixel/PutPixel */ |