diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:08:41 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:10:55 +0000 |
commit | faf4c1fb6012941134046db14370f60748184b05 (patch) | |
tree | 7ee2edc98702fed681a51d88ab50a4a9a958dca4 /frontends/amiga/bitmap.h | |
parent | 61a00c3832332bc27b991d3e20702a7f900e5098 (diff) | |
download | netsurf-faf4c1fb6012941134046db14370f60748184b05.tar.gz netsurf-faf4c1fb6012941134046db14370f60748184b05.tar.bz2 |
Free and clear icondata to avoid a potential double-free
Diffstat (limited to 'frontends/amiga/bitmap.h')
-rwxr-xr-x | frontends/amiga/bitmap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/amiga/bitmap.h b/frontends/amiga/bitmap.h index 771ded487..a32d740df 100755 --- a/frontends/amiga/bitmap.h +++ b/frontends/amiga/bitmap.h @@ -63,24 +63,24 @@ void ami_bitmap_set_url(struct bitmap *bm, struct nsurl *url); void ami_bitmap_set_title(struct bitmap *bm, const char *title); /** - * Get an icondata pointer + * Set an icondata pointer * * \param bm a bitmap, as returned by bitmap_create() - * \return pointer to the icondata area + * \param icondata a pointer to memory * * This function probably shouldn't be here! */ -ULONG *ami_bitmap_get_icondata(struct bitmap *bm); +void ami_bitmap_set_icondata(struct bitmap *bm, ULONG *icondata); /** - * Set an icondata pointer + * Free an icondata pointer * * \param bm a bitmap, as returned by bitmap_create() * \param icondata a pointer to memory * * This function probably shouldn't be here! */ -void ami_bitmap_set_icondata(struct bitmap *bm, ULONG *icondata); +void ami_bitmap_free_icondata(struct bitmap *bm); /** * Test if a BitMap is owned by a bitmap. |