[ostree] upgrader: Hold a ref to the origin



commit 1b8759a67e7705b2dba4b6c4d99e0c7b0b82da41
Author: Colin Walters <walters verbum org>
Date:   Tue Sep 30 10:22:57 2014 -0400

    upgrader: Hold a ref to the origin
    
    We unref it in _finalize, so we need to hold a ref.  I *thought*
    this was the source of
    https://github.com/projectatomic/rpm-ostree/issues/30
    
    But apparently not =/

 src/libostree/ostree-sysroot-upgrader.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-sysroot-upgrader.c b/src/libostree/ostree-sysroot-upgrader.c
index 10cddea..315b7cf 100644
--- a/src/libostree/ostree-sysroot-upgrader.c
+++ b/src/libostree/ostree-sysroot-upgrader.c
@@ -142,6 +142,7 @@ ostree_sysroot_upgrader_initable_init (GInitable        *initable,
                    ostree_deployment_get_deployserial (self->merge_deployment));
       goto out;
     }
+  g_key_file_ref (self->origin);
 
   if (!parse_refspec (self, cancellable, error))
     goto out;


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