[gom] gom: Fix memory leak during migration



commit 54737fd6c99fb20dc6c8877e035740b9a206258f
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 30 16:55:19 2014 +0200

    gom: Fix memory leak during migration
    
    The object_types list's ownership is ours when we're called, so
    make sure that we clear out the list when we're done with it.

 gom/gom-repository.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gom/gom-repository.c b/gom/gom-repository.c
index 9568176..c0c7793 100644
--- a/gom/gom-repository.c
+++ b/gom/gom-repository.c
@@ -368,6 +368,7 @@ gom_repository_automatic_migrator (GomRepository  *repository,
     }
 
 bail_object:
+    g_list_free(object_types);
     g_list_free_full(cmds, g_object_unref);
     g_type_class_unref(klass);
     if (*error)


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