[gnote] Fix memory leak in search window
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix memory leak in search window
- Date: Wed, 22 Aug 2012 20:15:47 +0000 (UTC)
commit 7c36ace5a705fff95cb6b439a00eb518341aaa15
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Wed Aug 22 22:46:30 2012 +0300
Fix memory leak in search window
Undeleted timeout object, when destroying window.
src/recentchanges.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 4389918..a3ce846 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -239,6 +239,9 @@ namespace gnote {
NoteRecentChanges::~NoteRecentChanges()
{
+ if(m_entry_changed_timeout) {
+ delete m_entry_changed_timeout;
+ }
Gnote::obj().remove_window(*this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]