From afcd99c1bf242bf25609b1e10df7bfac4950fb80 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 8 Jun 2017 17:12:27 -0400 Subject: [PATCH] status: don't use autoptr() on generated objects This would make a hard dependency on glib > 2.50, which we're not ready for yet. Closes: #824 Approved by: cgwalters --- src/app/rpmostree-builtin-status.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/rpmostree-builtin-status.c b/src/app/rpmostree-builtin-status.c index 9e3f05f6..42906151 100644 --- a/src/app/rpmostree-builtin-status.c +++ b/src/app/rpmostree-builtin-status.c @@ -187,7 +187,9 @@ status_generic (RPMOSTreeSysroot *sysroot_proxy, * on watching the path property, trying a connection, and re-reading the value * and only erroring out if the property hasn't changed. */ - g_autoptr(RPMOSTreeTransactionProxy) txn_proxy = (RPMOSTreeTransactionProxy*)rpmostree_transaction_connect (txn_path, NULL, NULL); + /* gdbus-codegen started generating autocleanups from 2.50 */ + glnx_unref_object RPMOSTreeTransactionProxy *txn_proxy = + (RPMOSTreeTransactionProxy*)rpmostree_transaction_connect (txn_path, NULL, NULL); if (txn_proxy) { const char *title = rpmostree_transaction_get_title ((RPMOSTreeTransaction*)txn_proxy);