delete framedata when ThemePrivate dies
This commit is contained in:
parent
3fdf999ba0
commit
0c127f1ce5
@ -112,7 +112,12 @@ ThemePrivate::ThemePrivate(QObject *parent)
|
||||
|
||||
ThemePrivate::~ThemePrivate()
|
||||
{
|
||||
if (FrameSvgPrivate::s_sharedFrames.contains(this)) {
|
||||
foreach (FrameData *data, FrameSvgPrivate::s_sharedFrames[this].values()) {
|
||||
delete data;
|
||||
}
|
||||
FrameSvgPrivate::s_sharedFrames.remove(this);
|
||||
}
|
||||
delete pixmapCache;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user