diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:02:42 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:02:42 +0000 |
commit | 2c6f2f4ef5a50c36676308f6663c0d21edc6aa70 (patch) | |
tree | 069ac9707f3ab227a9054f1d6866eb5916782c75 /frontends/amiga/history_local.c | |
parent | a8bd2af7103bca7145f8c566ec46f27e2be8d182 (diff) | |
download | netsurf-2c6f2f4ef5a50c36676308f6663c0d21edc6aa70.tar.gz netsurf-2c6f2f4ef5a50c36676308f6663c0d21edc6aa70.tar.bz2 |
More allocvec/malloc changes
Diffstat (limited to 'frontends/amiga/history_local.c')
-rwxr-xr-x | frontends/amiga/history_local.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/frontends/amiga/history_local.c b/frontends/amiga/history_local.c index fa5c249b9..5009ce888 100755 --- a/frontends/amiga/history_local.c +++ b/frontends/amiga/history_local.c @@ -51,7 +51,6 @@ #include "graphics/rpattr.h" #include "amiga/libs.h" -#include "amiga/memory.h" #include "amiga/misc.h" #include "amiga/object.h" #include "amiga/plotters.h" @@ -117,8 +116,8 @@ void ami_history_open(struct gui_window *gw) if(!gw->hw) { - gw->hw = ami_misc_allocvec_clear(sizeof(struct history_window), 0); - gw->hw->gg = ami_misc_allocvec_clear(sizeof(struct gui_globals), 0); + gw->hw = calloc(1, sizeof(struct history_window)); + gw->hw->gg = calloc(1, sizeof(struct gui_globals)); ami_init_layers(gw->hw->gg, scrn->Width, scrn->Height, false); @@ -227,7 +226,7 @@ static bool ami_history_click(struct history_window *hw, uint16 code) void ami_history_close(struct history_window *hw) { ami_free_layers(hw->gg); - FreeVec(hw->gg); + free(hw->gg); hw->gw->hw = NULL; DisposeObject(hw->objects[OID_MAIN]); DelObject(hw->node); |