[Issue 2105] Manual Memory Management for Associative Arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 2 20:11:06 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2105


davidl at 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |Phobos




------- Comment #7 from davidl at 126.com  2008-07-02 22:11 -------
It's a phobos related issue.
and also following func possibly need a fix.
in _aaRehash func : 
                len = prime_list[i];
                newb.b = new aaA*[len];

                foreach (e; aa.b)
                {
                    if (e)
                        _aaRehash_x(e);
                }

                newb.nodes = aa.nodes;
            }

            *paa.a = newb; // here the code doesn't delete the old BB struct.
where it should delete the old BB struct


-- 



More information about the Digitalmars-d-bugs mailing list