]> www.ginac.de Git - ginac.git/commit
Care about refcounts when reclaiming memory allocated for static objects.
authorRichard Kreckel <kreckel@ginac.de>
Tue, 31 May 2011 06:46:32 +0000 (08:46 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 31 May 2011 06:46:32 +0000 (08:46 +0200)
commit761a6d99032dbbd82e8166036c17b498edfaa058
tree71c413dc639d0817f86334df15409ec5e6b8343f
parent23c3c2c716953d6e4b12548994e210e8d57057ad
Care about refcounts when reclaiming memory allocated for static objects.

With commit aff357309f6 we started freeing numeric flyweights when the library
usage count drops to zero. But that triggers assertions in basic::~basic
when compiled with -DDO_GINAC_ASSERT because these flyweights are still being
used by their matching ex objects (their refcount is still 1). Instead of
removing that assertion, let's just call the ex::~ex manually and let it do
the freeing.
ginac/utils.cpp