… | |
… | |
553 | { |
553 | { |
554 | refcnt = 0; |
554 | refcnt = 0; |
555 | rc_next = rc_first; |
555 | rc_next = rc_first; |
556 | rc_first = this; |
556 | rc_first = this; |
557 | } |
557 | } |
|
|
558 | #endif |
558 | |
559 | |
559 | refcounted::~refcounted () |
560 | refcounted::~refcounted () |
560 | { |
561 | { |
|
|
562 | #if 0 |
561 | assert (!rc_next); |
563 | assert (!rc_next); |
562 | assert (!refcnt); |
564 | assert (!refcnt); |
563 | } |
|
|
564 | #endif |
565 | #endif |
|
|
566 | } |
565 | |
567 | |
566 | void *salloc_ (int n) throw (std::bad_alloc) |
568 | void *salloc_ (int n) throw (std::bad_alloc) |
567 | { |
569 | { |
568 | void *ptr = g_slice_alloc (n); |
570 | void *ptr = g_slice_alloc (n); |
569 | |
571 | |