Pino Toscano
2020-Jun-01 07:15 UTC
[Libguestfs] [v2v PATCH] libosinfo: declare OsinfoList auto-cleanup with glib < 2.63.3
Starting from glib 2.63.3, Module classes have already auto-cleanup functions declared for them. Reported by: Kevin Locke. --- v2v/libosinfo-c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2v/libosinfo-c.c b/v2v/libosinfo-c.c index 1ab6bb4d..e6827f76 100644 --- a/v2v/libosinfo-c.c +++ b/v2v/libosinfo-c.c @@ -44,7 +44,9 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(OsinfoFilter, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(OsinfoLoader, g_object_unref) +#if !GLIB_CHECK_VERSION(2, 63, 3) G_DEFINE_AUTOPTR_CLEANUP_FUNC(OsinfoList, g_object_unref) +#endif G_DEFINE_AUTOPTR_CLEANUP_FUNC(OsinfoOsList, g_object_unref) typedef OsinfoDb *OsinfoDb_t; -- 2.25.4
Pino Toscano
2020-Jun-01 07:43 UTC
[Libguestfs] [v2v PATCH] libosinfo: declare OsinfoList auto-cleanup with glib < 2.63.3
On Monday, 1 June 2020 09:15:24 CEST Pino Toscano wrote:> Starting from glib 2.63.3, Module classes have already auto-cleanup > functions declared for them. > > Reported by: Kevin Locke. > ---Actually this requires few more checks, I'll shortly send a v2. -- Pino Toscano -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: This is a digitally signed message part. URL: <http://listman.redhat.com/archives/libguestfs/attachments/20200601/6b88b709/attachment.sig>
Maybe Matching Threads
- [v2v PATCH v2] libosinfo: do not declare OsinfoList auto-cleanup in certain situations
- [v2v PATCH] libosinfo: declare autocleanup funcs with libosinfo < 1.8.0
- [v2v PATCH] libosinfo: remove auto-cleanup for OsinfoList
- [v2v PATCH 0/3] Use libosinfo for query device drivers
- [v2v PATCH v2 0/3] Use libosinfo for query device drivers