[gnome-packagekit] trivial: Fix up a tiny memory leak when getting updates



commit 5d755446ddd6daa9eebd8986d8f07f61e99741f7
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jun 18 13:50:52 2013 +0100

    trivial: Fix up a tiny memory leak when getting updates

 src/gpk-update-viewer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 94ea12c..53be9cf 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -866,7 +866,7 @@ gpk_update_viewer_progress_cb (PkProgress *progress,
 
                /* add the results, not the progress */
                if (role == PK_ROLE_ENUM_GET_UPDATES)
-                       return;
+                       goto out;
 
                g_object_get (package,
                              "info", &info,


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