]> git.mxchange.org Git - flightgear.git/commit
Nuked the segfault on exit bug everyone was seeing. The material lib could
authorcurt <curt>
Fri, 13 Jul 2001 05:15:29 +0000 (05:15 +0000)
committercurt <curt>
Fri, 13 Jul 2001 05:15:29 +0000 (05:15 +0000)
commitdae9b63a14a9e0855eeda9cbe7fbd95326420f0b
tree619a4aa12c9149dc2c2c1127e3b56cc5411dbddc
parenta9289994b0ba5287fdc88e05a3810db2530b54c2
Nuked the segfault on exit bug everyone was seeing.  The material lib could
have multiple ptrs to individual entries (aliases) but the destructor was
trying to delete every ptr so it would delete already freed memory for aliases.
I implimented a simple ref counting scheme (similar to the plib mechanism) to
track references to material lib entries and only "delete" them when the last
reference is removed.
src/Objects/matlib.cxx
src/Objects/newmat.cxx
src/Objects/newmat.hxx