renderers hash table keys created with path but erased with themePath.

Corrects memory leak on theme change.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867965
This commit is contained in:
Andrew Lake 2008-10-05 04:47:25 +00:00
parent a99aee5e8d
commit 9b312459be

View File

@ -213,7 +213,7 @@ class SvgPrivate
{
if ( renderer && renderer.count() == 2) {
// this and the cache reference it; and boy is this not thread safe ;)
renderers.erase(renderers.find(themePath));
renderers.erase(renderers.find(path));
}
renderer = 0;