From b1997ad437bd6ca46aa0c12b058090e5cad7871f Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Thu, 30 May 2013 18:03:57 -0500 Subject: [PATCH] gc: protect more objects --- core/objmodel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/objmodel.c b/core/objmodel.c index e1fb5bb9..5bd73e58 100644 --- a/core/objmodel.c +++ b/core/objmodel.c @@ -256,6 +256,7 @@ static inline long potion_obj_find_ivar(Potion *P, PN self, PN ivar) { /// implements OP_GETPATH PN potion_obj_get(Potion *P, PN cl, PN self, PN ivar) { + self = potion_fwd(self); long i = potion_obj_find_ivar(P, self, ivar); if (i >= 0) return ((struct PNObject *)self)->ivars[i]; @@ -263,6 +264,7 @@ PN potion_obj_get(Potion *P, PN cl, PN self, PN ivar) { } /// implements OP_SETPATH PN potion_obj_set(Potion *P, PN cl, PN self, PN ivar, PN value) { + self = potion_fwd(self); long i = potion_obj_find_ivar(P, self, ivar); if (i >= 0) { ((struct PNObject *)self)->ivars[i] = value;