[1081] in Coldmud discussion meeting
[COLD] Patch - persisting objects
daemon@ATHENA.MIT.EDU (Tue Aug 27 22:42:16 1996
)
Date: Wed, 28 Aug 1996 04:23:01 +0200 (MET DST)
From: Miroslav Silovic <silovic@public.srce.hr>
To: coldstuff@cold.org
Okay, here's another take at unkillable objects bug. This one made
method_info grab an extra ref.
Miro
Here's the patch, folks.
---------------------
*** /tmp/x/Genesis-1.0p13/src/ops/object.c Sat Aug 10 19:43:52 1996
--- object.c Wed Aug 28 04:15:55 1996
***************
*** 414,429 ****
--- 414,430 ----
case MS_DRIVER: list[4].u.symbol = ident_dup(driver_id); break;
default: list[4].type = INTEGER; list[4].u.val = 0; break;
}
list[5].type = LIST;
list[5].u.list = list_method_flags(method->m_flags);
pop(1);
+ cache_discard(method->object);
push_list(output);
list_discard(output);
}
COLDC_FUNC(methods) {
cList * methods;
cData d;
Obj * obj;