Skip to content

Commit

Permalink
avoid a resurrection error
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Sansonetti committed Jul 1, 2011
1 parent 7194f96 commit dbedf7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/bigdecimal/bigdecimal.c
Expand Up @@ -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)
Expand Down

0 comments on commit dbedf7c

Please sign in to comment.