Fix two leaks reported by coverity
This commit is contained in:
@@ -168,6 +168,10 @@ PreviewLoader::PreviewLoader():
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PreviewLoader::~PreviewLoader() {
|
||||||
|
delete impl_;
|
||||||
|
}
|
||||||
|
|
||||||
PreviewLoader* PreviewLoader::getInstance()
|
PreviewLoader* PreviewLoader::getInstance()
|
||||||
{
|
{
|
||||||
static PreviewLoader instance_;
|
static PreviewLoader instance_;
|
||||||
|
@@ -82,6 +82,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
PreviewLoader();
|
PreviewLoader();
|
||||||
|
~PreviewLoader();
|
||||||
|
|
||||||
class Impl;
|
class Impl;
|
||||||
Impl* impl_;
|
Impl* impl_;
|
||||||
|
@@ -183,6 +183,10 @@ ThumbImageUpdater::ThumbImageUpdater():
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ThumbImageUpdater::~ThumbImageUpdater() {
|
||||||
|
delete impl_;
|
||||||
|
}
|
||||||
|
|
||||||
void ThumbImageUpdater::add(ThumbBrowserEntryBase* tbe, bool* priority, bool upgrade, ThumbImageUpdateListener* l)
|
void ThumbImageUpdater::add(ThumbBrowserEntryBase* tbe, bool* priority, bool upgrade, ThumbImageUpdateListener* l)
|
||||||
{
|
{
|
||||||
// nobody listening?
|
// nobody listening?
|
||||||
|
@@ -89,6 +89,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
ThumbImageUpdater();
|
ThumbImageUpdater();
|
||||||
|
~ThumbImageUpdater();
|
||||||
|
|
||||||
class Impl;
|
class Impl;
|
||||||
Impl* impl_;
|
Impl* impl_;
|
||||||
|
Reference in New Issue
Block a user