diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 17:02:18 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 17:02:18 +0000 |
commit | 81a7e0cbe9851c2388e53950a6db3e75b1156ead (patch) | |
tree | 6e0749ea07a0bd9ecdb7b246ae6d267dfab1067a /frontends/amiga/bitmap.c | |
parent | cdde777d9cf157460201c59c5cc05c7479c3f830 (diff) | |
download | netsurf-81a7e0cbe9851c2388e53950a6db3e75b1156ead.tar.gz netsurf-81a7e0cbe9851c2388e53950a6db3e75b1156ead.tar.bz2 |
Change some AllocVecs to mallocs and FreeVecs to free
Need to be careful with ASPrintf
Diffstat (limited to 'frontends/amiga/bitmap.c')
-rw-r--r-- | frontends/amiga/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/amiga/bitmap.c b/frontends/amiga/bitmap.c index 7609d9451..d612abf05 100644 --- a/frontends/amiga/bitmap.c +++ b/frontends/amiga/bitmap.c @@ -113,7 +113,7 @@ void *amiga_bitmap_create(int width, int height, unsigned int state) bitmap = ami_misc_itempool_alloc(pool_bitmap, sizeof(struct bitmap)); if(bitmap == NULL) return NULL; - bitmap->pixdata = ami_misc_allocvec_clear(width*height*4, 0xff); + bitmap->pixdata = ami_memory_clear_alloc(width*height*4, 0xff); bitmap->width = width; bitmap->height = height; @@ -170,7 +170,7 @@ void amiga_bitmap_destroy(void *bitmap) if(bm->native_mask) FreeRaster(bm->native_mask, bm->width, bm->height); if(bm->drawhandle) ReleaseDrawHandle(bm->drawhandle); - FreeVec(bm->pixdata); + ami_memory_clear_free(bm->pixdata); if(bm->url) nsurl_unref(bm->url); if(bm->title) free(bm->title); |