comparison mac/dw.m @ 918:6b400a0f5f70

Revering the dw_pixmap_destroy() dealloc/release change on the Mac. Need to figure out why it is leaking.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 22 Apr 2011 04:51:46 +0000
parents 8567c9ac089d
children 2ab67f71b50f
comparison
equal deleted inserted replaced
917:8567c9ac089d 918:6b400a0f5f70
5993 * dw_pixmap_new.. 5993 * dw_pixmap_new..
5994 */ 5994 */
5995 void API dw_pixmap_destroy(HPIXMAP pixmap) 5995 void API dw_pixmap_destroy(HPIXMAP pixmap)
5996 { 5996 {
5997 NSBitmapImageRep *image = (NSBitmapImageRep *)pixmap->image; 5997 NSBitmapImageRep *image = (NSBitmapImageRep *)pixmap->image;
5998 [image dealloc]; 5998 [image release];
5999 free(pixmap); 5999 free(pixmap);
6000 } 6000 }
6001 6001
6002 /* 6002 /*
6003 * Copies from one item to another. 6003 * Copies from one item to another.