From 8a7d030af7a41589a2948d029658778b79c2a27b Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 22 Mar 2016 19:45:15 +0000 Subject: Ensure we don't access invalid pointers --- amiga/bitmap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'amiga/bitmap.h') diff --git a/amiga/bitmap.h b/amiga/bitmap.h index a1893b317..743cd8faa 100755 --- a/amiga/bitmap.h +++ b/amiga/bitmap.h @@ -46,7 +46,8 @@ struct bitmap *ami_bitmap_from_datatype(char *filename); * \param bm a bitmap, as returned by bitmap_create() * \param title a pointer to a title string * - * It is assumed that this is freed elsewhere after the bitmap is destroyed. + * A reference will be kept by the bitmap object. + * The URL can only ever be set once for a bitmap. */ void ami_bitmap_set_url(struct bitmap *bm, struct nsurl *url); @@ -56,7 +57,8 @@ void ami_bitmap_set_url(struct bitmap *bm, struct nsurl *url); * \param bm a bitmap, as returned by bitmap_create() * \param title a pointer to a title string * - * It is assumed that this is freed elsewhere after the bitmap is destroyed. + * This is copied by the bitmap object. + * The title can only ever be set once for a bitmap. */ void ami_bitmap_set_title(struct bitmap *bm, const char *title); -- cgit v1.2.3