Fixed memory leak.

This commit is contained in:
Vincent Richard 2010-02-01 16:33:31 +00:00
parent 668087ea36
commit 69421bbd6f
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ maildirFormat::context::context(ref <maildirStore> store)
ref <maildirStore> maildirFormat::context::getStore() const ref <maildirStore> maildirFormat::context::getStore() const
{ {
return m_store; return m_store.acquire().constCast <maildirStore>();
} }

View File

@ -55,7 +55,7 @@ public:
private: private:
ref <maildirStore> m_store; weak_ref <maildirStore> m_store;
}; };