[PATCH 2/3] lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr

Laine Stump laine at redhat.com
Fri Sep 4 15:09:09 UTC 2020


On 9/4/20 4:24 AM, Michal Privoznik wrote:
> In the past we had to declare @cfg and then explicitly unref it.
> But now, with glib we can use g_autoptr() which will do the unref
> automatically and thus is more bulletproof.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>


Reviewed-by: Laine Stump <laine at redhat.com>





More information about the libvir-list mailing list