diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 20:44:17 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 20:44:17 +0000 |
commit | a8bd2af7103bca7145f8c566ec46f27e2be8d182 (patch) | |
tree | 2c14d8d3402e7799b161852676dc8698310ed59f /frontends/amiga/font_scan.c | |
parent | 81a7e0cbe9851c2388e53950a6db3e75b1156ead (diff) | |
download | netsurf-a8bd2af7103bca7145f8c566ec46f27e2be8d182.tar.gz netsurf-a8bd2af7103bca7145f8c566ec46f27e2be8d182.tar.bz2 |
More allocvec/malloc replacements
Diffstat (limited to 'frontends/amiga/font_scan.c')
-rw-r--r-- | frontends/amiga/font_scan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/amiga/font_scan.c b/frontends/amiga/font_scan.c index c1c1732b9..932179e3e 100644 --- a/frontends/amiga/font_scan.c +++ b/frontends/amiga/font_scan.c @@ -99,7 +99,7 @@ const char *ami_font_scan_lookup(const uint16 *code, lwc_string **glypharray) static struct ami_font_scan_window *ami_font_scan_gui_open(int32 fonts) { struct ami_font_scan_window *fsw = - AllocVecTagList(sizeof(struct ami_font_scan_window), NULL); + malloc(sizeof(struct ami_font_scan_window)); if(fsw == NULL) return NULL; @@ -201,7 +201,7 @@ static void ami_font_scan_gui_close(struct ami_font_scan_window *fsw) if(fsw) { DisposeObject(fsw->objects[FS_OID_MAIN]); ami_utf8_free(fsw->title); - FreeVec(fsw); + free(fsw); } } @@ -317,10 +317,10 @@ static ULONG ami_font_scan_list(struct MinList *list) struct nsObject *node; do { - if((afh = (struct AvailFontsHeader *)AllocVecTagList(afSize, NULL))) { + if((afh = (struct AvailFontsHeader *)malloc(afSize))) { if(((afShortage = AvailFonts((STRPTR)afh, afSize, AFF_DISK | AFF_OTAG | AFF_SCALED)))) { - FreeVec(afh); + free(afh); afSize += afShortage; } } else { @@ -350,7 +350,7 @@ static ULONG ami_font_scan_list(struct MinList *list) } } } - FreeVec(afh); + free(afh); } else { return 0; } |