Permalink
Browse files

avoid a resurrection error

  • Loading branch information...
1 parent 7194f96 commit dbedf7c04cee40b6f79fc794e75481e7b81d351c Laurent Sansonetti committed Jul 1, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 ext/bigdecimal/bigdecimal.c
@@ -93,11 +93,16 @@ static int VpLimitRound(Real *c, size_t ixDigit);
* **** BigDecimal part ****
*/
+#if 0
+// XXX MACRUBY manually deleting the Real structure seems to cause a resurrection error
+// because both the Free structure and the Ruby object have a cyclic reference.
static void
BigDecimal_delete(void *pv)
{
VpFree(pv);
}
+#endif
+#define BigDecimal_delete NULL
static VALUE
ToValue(Real *p)

0 comments on commit dbedf7c

Please sign in to comment.