use the API, luke!

This commit is contained in:
Aaron Seigo 2011-04-30 10:15:00 +02:00
parent eb871eca6a
commit 5f0daaec50

View File

@ -566,11 +566,7 @@ void WallpaperPrivate::newRenderCompleted(WallpaperRenderThread *currentRenderer
break;
}
} else {
for (int i = 0; i < s_renderers.size(); i++) {
if (s_renderers[i] == currentRenderer){
s_renderers.removeAt(i);
}
}
s_renderers.removeAll(currentRenderer);
currentRenderer->deleteLater();
currentRenderer = 0;
}