summaryrefslogtreecommitdiff
path: root/amiga/object.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-09-08 18:14:14 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-09-08 18:14:14 +0000
commit9fc58606dba39016a66371a30c23c14799576731 (patch)
tree87b0aed27c2e9fd3816775ea44c9905281145b6d /amiga/object.c
parent7dd73c5b43084f801bf10f6173912e5b3ffbc11b (diff)
downloadnetsurf-9fc58606dba39016a66371a30c23c14799576731.tar.gz
netsurf-9fc58606dba39016a66371a30c23c14799576731.tar.bz2
Scheduled events now signal when the scheduled time has passed.
The timer appears to stop signalling events occasionally - needs some investigation. svn path=/trunk/netsurf/; revision=5287
Diffstat (limited to 'amiga/object.c')
-rwxr-xr-xamiga/object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/amiga/object.c b/amiga/object.c
index 32886fe89..f13451bfb 100755
--- a/amiga/object.c
+++ b/amiga/object.c
@@ -20,6 +20,7 @@
#include <exec/lists.h>
#include <exec/nodes.h>
#include "amiga/object.h"
+#include "amiga/schedule.h"
struct MinList *NewObjList(void)
{
@@ -64,6 +65,9 @@ void FreeObjList(struct MinList *objlist)
while(nnode=(struct nsObject *)(node->dtz_Node.mln_Succ))
{
+ if(node->Type == AMINS_CALLBACK)
+ ami_remove_timer_event((struct nscallback *)node->objstruct);
+
DelObject(node);
node=nnode;
}