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:
Michal Privoznik 2021-03-24 16:49:39 +01:00
parent 228a87d307
commit af09d7a37a

View File

@ -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)