Safety...if createRenderer was never called this will still be zero

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803406
This commit is contained in:
Jeff Mitchell 2008-05-02 19:22:07 +00:00
parent f3188fb672
commit ee70465d89

View File

@ -208,7 +208,7 @@ class Svg::Private
void eraseRenderer()
{
if (renderer.count() == 2) {
if ( renderer && renderer.count() == 2) {
// this and the cache reference it; and boy is this not thread safe ;)
renderers.erase(renderers.find(themePath));
}