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;
|
void *eopaque;
|
||||||
|
|
||||||
virObjectLock(sock);
|
virObjectLock(sock);
|
||||||
ff = g_steal_pointer(&sock->ff);
|
ff = sock->ff;
|
||||||
eopaque = g_steal_pointer(&sock->opaque);
|
eopaque = g_steal_pointer(&sock->opaque);
|
||||||
sock->func = NULL;
|
sock->func = NULL;
|
||||||
|
sock->ff = NULL;
|
||||||
virObjectUnlock(sock);
|
virObjectUnlock(sock);
|
||||||
|
|
||||||
if (ff)
|
if (ff)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user