diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-01 11:59:08 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-01 11:59:08 +0000 |
commit | 08dcfc0c44eab614eca2072a739ed534a326abb7 (patch) | |
tree | 4e659b76a8a375a055cd0e6841b5e96419f5c5f4 /amiga/object.c | |
parent | 37854d1575a0038ea6bb4e1fd16d774581bbe93b (diff) | |
download | netsurf-08dcfc0c44eab614eca2072a739ed534a326abb7.tar.gz netsurf-08dcfc0c44eab614eca2072a739ed534a326abb7.tar.bz2 |
Every five minutes, close any fonts not used in the last five minutes
svn path=/trunk/netsurf/; revision=12267
Diffstat (limited to 'amiga/object.c')
-rwxr-xr-x | amiga/object.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/amiga/object.c b/amiga/object.c index 440d6559a..a5bdc7f38 100755 --- a/amiga/object.c +++ b/amiga/object.c @@ -19,10 +19,9 @@ #include <proto/exec.h> #include <exec/lists.h> #include <exec/nodes.h> -#include <memory.h> +#include "amiga/font.h" #include "amiga/object.h" -#include "amiga/schedule.h" struct MinList *NewObjList(void) { @@ -53,6 +52,7 @@ struct nsObject *AddObject(struct MinList *objlist, ULONG otype) void DelObjectInternal(struct nsObject *dtzo, BOOL free_obj) { Remove((struct Node *)dtzo); + if(dtzo->Type == AMINS_FONT) ami_font_close(dtzo->objstruct); if(dtzo->objstruct && free_obj) FreeVec(dtzo->objstruct); if(dtzo->dtz_Node.ln_Name) free(dtzo->dtz_Node.ln_Name); FreeVec(dtzo); @@ -80,7 +80,6 @@ void FreeObjList(struct MinList *objlist) do { nnode=(struct nsObject *)GetSucc((struct Node *)node); - if(node->Type == AMINS_FONT) ami_font_close(node->objstruct); DelObject(node); }while(node=nnode); |