diff options
author | Richard Hughes <richard@hughsie.com> | 2016-01-28 09:10:29 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-01-28 09:33:16 +0000 |
commit | 423d34858c81bca571ed81f14b49106f10462564 (patch) | |
tree | 3ad8a6fbb37b6d28e1a2d755a69a2fe3b02cf10f /lib/packagekit-glib2/pk-client.h | |
parent | 827bb2bdff461908586ddb09962ba14cc2a636fc (diff) |
Port to g_autoptr()
Diffstat (limited to 'lib/packagekit-glib2/pk-client.h')
-rw-r--r-- | lib/packagekit-glib2/pk-client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/packagekit-glib2/pk-client.h b/lib/packagekit-glib2/pk-client.h index 40ca88c64..4aa11b854 100644 --- a/lib/packagekit-glib2/pk-client.h +++ b/lib/packagekit-glib2/pk-client.h @@ -78,6 +78,10 @@ typedef struct _PkClientPrivate PkClientPrivate; typedef struct _PkClient PkClient; typedef struct _PkClientClass PkClientClass; +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkClient, g_object_unref) +#endif + struct _PkClient { GObject parent; |