[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH virt-viewer 1/4] Don't leak foreign menu



From: Marc-Andre Lureau <marcandre lureau redhat com>

The RemoveViewer object will have its own ref.
---
 src/remote-viewer.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/remote-viewer.c b/src/remote-viewer.c
index f0512c8..85ad319 100644
--- a/src/remote-viewer.c
+++ b/src/remote-viewer.c
@@ -198,6 +198,7 @@ remote_viewer_new_with_controller(gboolean verbose)
                          "verbose", verbose,
                          NULL);
     g_object_unref(ctrl);
+    g_object_unref(menu);
 
     return self;
 }
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]