[vinagre] Fix a memory leak
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre] Fix a memory leak
- Date: Thu, 29 Oct 2009 00:44:03 +0000 (UTC)
commit 8a1ed64c436f52d4262bccee4f9327f351f54316
Author: Jonh Wendell <jwendell gnome org>
Date: Wed Oct 28 21:43:31 2009 -0300
Fix a memory leak
vinagre/vinagre-bookmarks-tree.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vinagre/vinagre-bookmarks-tree.c b/vinagre/vinagre-bookmarks-tree.c
index fb28a1f..aa068d7 100644
--- a/vinagre/vinagre-bookmarks-tree.c
+++ b/vinagre/vinagre-bookmarks-tree.c
@@ -222,6 +222,8 @@ vinagre_bookmarks_tree_get_selected_entry (VinagreBookmarksTree *tree)
&iter,
ENTRY_COL, &entry,
-1);
+ if (entry)
+ g_object_unref (entry);
return entry;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]