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 |
5db33d37cc1a |
children |
8727ad1a19c3 |
files |
ios/dw.m mac/dw.m |
diffstat |
2 files changed, 2 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/ios/dw.m Tue Mar 30 16:17:39 2021 +0000
+++ b/ios/dw.m Wed Mar 31 16:31:27 2021 +0000
@@ -6598,6 +6598,7 @@
pixmap->height = [tmpimage size].height;
pixmap->image = tmpimage;
pixmap->handle = handle;
+ DW_LOCAL_POOL_OUT;
return pixmap;
}
free(pixmap);
--- a/mac/dw.m Tue Mar 30 16:17:39 2021 +0000
+++ b/mac/dw.m Wed Mar 31 16:31:27 2021 +0000
@@ -8973,6 +8973,7 @@
pixmap->image = image;
pixmap->handle = handle;
[temp release];
+ DW_LOCAL_POOL_OUT;
return pixmap;
}
free(pixmap);