mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 06:03:52 +03:00
virnetsocket: Revert part of g_steal_pointer() rewrite
Turns out, the way that glib implements g_steal_pointer() is not compatible with function callbacks. And that's what my recent patch did in virNetSocketEventFree(). Revert that part. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
228a87d307
commit
af09d7a37a
@ -2156,9 +2156,10 @@ static void virNetSocketEventFree(void *opaque)
|
||||
void *eopaque;
|
||||
|
||||
virObjectLock(sock);
|
||||
ff = g_steal_pointer(&sock->ff);
|
||||
ff = sock->ff;
|
||||
eopaque = g_steal_pointer(&sock->opaque);
|
||||
sock->func = NULL;
|
||||
sock->ff = NULL;
|
||||
virObjectUnlock(sock);
|
||||
|
||||
if (ff)
|
||||
|
Loading…
x
Reference in New Issue
Block a user