HomePhorge

backport 924447 and subsequent build fixes:
3dbaf1d0c667Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

backport 924447 and subsequent build fixes:

fix a memleak caused by a shared_ptr cycle: Resource holds a Model copy, which has a shared_ptr<ModelPrivate>, which in turn has a shared_ptr to the
resources.
That way RDF models never got destructed. Break the cycle by holding weak_ptr's to ModelPrivate in Resource and Statement. That would break cases
where only a ResourcePtr is kept and no Model copy, thus keep a Model copy in ResourceWrapper so that the model is not destroyed until the last
Resource/ResourceWrapper refering to that model goes out of scope.

svn path=/branches/KDE/4.2/kdepimlibs/; revision=930782

Details

Event Timeline

Frank Osterfeld <frank.osterfeld@kdemail.net> committed rKPL3dbaf1d0c667: backport 924447 and subsequent build fixes: (authored by Frank Osterfeld <frank.osterfeld@kdemail.net>).Feb 24 2009, 9:44 AM