[gobject-introspection] Correctly ref repository in GIUnresolvedInfo



commit 4a6cba2c23df6bd541981ba460ee48cd40fe4ba5
Author: Colin Walters <walters verbum org>
Date:   Fri Sep 4 17:02:14 2009 -0400

    Correctly ref repository in GIUnresolvedInfo
    
    Followup to previous patch.

 girepository/ginfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/girepository/ginfo.c b/girepository/ginfo.c
index 19723dd..eef3cd6 100644
--- a/girepository/ginfo.c
+++ b/girepository/ginfo.c
@@ -203,7 +203,7 @@ g_info_from_entry (GIRepository *repository,
 
 	  unresolved->type = GI_INFO_TYPE_UNRESOLVED;
 	  unresolved->ref_count = 1;
-	  unresolved->repository = repository;
+	  unresolved->repository = g_object_ref (repository);
 	  unresolved->container = NULL;
 	  unresolved->name = name;
 	  unresolved->namespace = namespace;



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