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 | 546da5456b454c59bf41eed39f7cf7261386f8f8 (patch) | |
tree | de047e83d7b5ef6c4871abd6a170f1c07df7318b /image | |
parent | 6bf208e96539af3a12b56dc56075dacc436f2381 (diff) |
leak fixed
Diffstat (limited to 'image')
-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 */ |