[Xcb-commit] 2 commits - xcb-util

Vincent Torri doursse at kemper.freedesktop.org
Fri Apr 28 11:50:31 PDT 2006


 xcb-util/image/xcb_image.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

New commits:
diff-tree 0d01d5c0d69b1e9b5c18b20369c695bb5780ceb5 (from parents)
Merge: c29cb222f328baa17af3443695a29c245f4a9ba5 9895e42193297a5630bf9435fb25a4ebf2c7aa9f
Author: TORRI Vincent <torri at doursse.(none)>
Date:   Fri Apr 28 20:50:19 2006 +0200

    Merge branch 'master' of git+ssh://doursse@git.freedesktop.org/git/xcb

diff-tree c29cb222f328baa17af3443695a29c245f4a9ba5 (from 2aca179885b88aff8fa258666367850cd8820d97)
Author: TORRI Vincent <torri at doursse.(none)>
Date:   Fri Apr 28 20:49:15 2006 +0200

    leak fixed

diff --git a/xcb-util/image/xcb_image.c b/xcb-util/image/xcb_image.c
index 93b7879..bda4dab 100644
--- a/xcb-util/image/xcb_image.c
+++ b/xcb-util/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 */


More information about the xcb-commit mailing list