diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-03-22 19:45:15 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-03-22 19:45:15 +0000 |
commit | 8a7d030af7a41589a2948d029658778b79c2a27b (patch) | |
tree | 425cbe64a6697fe477c6b0751aca8d48b79a4c81 /amiga/bitmap.h | |
parent | 215d1bec589de6085acf55e79bfc1295b26abf16 (diff) | |
download | netsurf-8a7d030af7a41589a2948d029658778b79c2a27b.tar.gz netsurf-8a7d030af7a41589a2948d029658778b79c2a27b.tar.bz2 |
Ensure we don't access invalid pointers
Diffstat (limited to 'amiga/bitmap.h')
-rwxr-xr-x | amiga/bitmap.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); |