[gom] gom: Fix a memory leak in gom_repository_migrate_sync()



commit 1a4acf7096073556ce56633fbbae94852317215a
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 16 19:37:17 2014 +0200

    gom: Fix a memory leak in gom_repository_migrate_sync()
    
    And by extension in the automatic migration sync call.

 gom/gom-repository.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gom/gom-repository.c b/gom/gom-repository.c
index 8f0cb26..cc81318 100644
--- a/gom/gom-repository.c
+++ b/gom/gom-repository.c
@@ -266,6 +266,8 @@ gom_repository_migrate_sync (GomRepository          *repository,
       g_simple_async_result_propagate_error(simple, error);
    }
 
+   g_object_unref(simple);
+
    return ret;
 }
 


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