[gnote/stable-0.8] Fix memory leak in search window
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnote/stable-0.8] Fix memory leak in search window
- Date: Sun,  9 Sep 2012 13:13:57 +0000 (UTC)
commit 627d852893985fa2aeacee748a4a5bd475bc94aa
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Sun Sep 9 14:19:34 2012 +0300
    Fix memory leak in search window
    
    Undeleted timeout object, when destroying window.
 src/recentchanges.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index e96bc40..4f8338e 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2011 Aurimas Cernius
+ * Copyright (C) 2010-2012 Aurimas Cernius
  * Copyright (C) 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -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]