Mercurial > dwindows
comparison mac/dw.m @ 2412:3b59cbd26fab
iOS/Mac: Fix a minor memory leak in dw_pixmap_grab().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 31 Mar 2021 16:31:27 +0000 |
parents | 0286ac44d347 |
children | 50e1ddce0aeb |
comparison
equal
deleted
inserted
replaced
2411:5db33d37cc1a | 2412:3b59cbd26fab |
---|---|
8971 pixmap->width = size.width; | 8971 pixmap->width = size.width; |
8972 pixmap->height = size.height; | 8972 pixmap->height = size.height; |
8973 pixmap->image = image; | 8973 pixmap->image = image; |
8974 pixmap->handle = handle; | 8974 pixmap->handle = handle; |
8975 [temp release]; | 8975 [temp release]; |
8976 DW_LOCAL_POOL_OUT; | |
8976 return pixmap; | 8977 return pixmap; |
8977 } | 8978 } |
8978 free(pixmap); | 8979 free(pixmap); |
8979 DW_LOCAL_POOL_OUT; | 8980 DW_LOCAL_POOL_OUT; |
8980 return NULL; | 8981 return NULL; |