This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 323 for ps


Ignore:
Timestamp:
05/30/04 02:57:20 (21 years ago)
Author:
janwas
Message:

fixed bug found via mem leak: handles now closed at exit regardless of refcount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/res/h_mgr.cpp

    r292 r323  
    247247            // better than an additional h_free(i32 idx) version though.
    248248            Handle h = handle(i, hd->tag);
     249
     250            // HACK: must actually free the handles, regardless
     251            // of current refcount. so, quick'n dirty solution: set it to 0.
     252            hd->refs = 0;
     253
    249254            h_free(h, hd->type);
    250255        }
Note: See TracChangeset for help on using the changeset viewer.