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:
parent
a99aee5e8d
commit
9b312459be
2
svg.cpp
2
svg.cpp
@ -213,7 +213,7 @@ class SvgPrivate
|
|||||||
{
|
{
|
||||||
if ( renderer && renderer.count() == 2) {
|
if ( renderer && renderer.count() == 2) {
|
||||||
// this and the cache reference it; and boy is this not thread safe ;)
|
// 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;
|
renderer = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user