Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting
authorAlan Hourihane <alanh@tungstengraphics.com>
Wed, 17 Oct 2007 18:39:41 +0000 (19:39 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Wed, 17 Oct 2007 18:39:41 +0000 (19:39 +0100)
Conflicts:

pixman/pixman-image.c

1  2 
pixman/pixman-compose.c
pixman/pixman-edge.c
pixman/pixman-image.c
pixman/pixman-mmx.c
pixman/pixman-pict.c
pixman/pixman-private.h
pixman/pixman-utils.c
pixman/pixman.h

Simple merge
Simple merge
@@@ -320,23 -345,26 +345,26 @@@ pixman_image_create_bits (pixman_format
      pixman_image_t *image;
      uint32_t *free_me = NULL;
  
 -    /* must be a whole number of uint32_t's 
 +    /* must be a whole number of uint32_t's
       */
      return_val_if_fail (bits == NULL ||
 -                      (rowstride_bytes % sizeof (uint32_t)) == 0, NULL); 
 +                      (rowstride_bytes % sizeof (uint32_t)) == 0, NULL);
  
-     if (!bits)
+     if (!bits && width && height)
      {
        free_me = bits = create_bits (format, width, height, &rowstride_bytes);
        if (!bits)
            return NULL;
      }
 -    
 +
      image = allocate_image();
  
-     if (!image)
+     if (!image) {
+       if (free_me)
+           free (free_me);
        return NULL;
+     }
+     
      image->type = BITS;
      image->bits.format = format;
      image->bits.width = width;
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc pixman/pixman.h
Simple merge