diff --git a/src/datatypes.c b/src/datatypes.c index 4258358d263011df1eb95870ebd1342f5178cdd8..f9f0b5666cdfbf84726ffd882e451a31d0bcf19f 100644 --- a/src/datatypes.c +++ b/src/datatypes.c @@ -186,13 +186,7 @@ void virConnectCloseCallbackDataReset(virConnectCloseCallbackDataPtr close) static void virConnectCloseCallbackDataDispose(void *obj) { - virConnectCloseCallbackDataPtr cb = obj; - - virObjectLock(cb); - - virConnectCloseCallbackDataReset(cb); - - virObjectUnlock(cb); + virConnectCloseCallbackDataReset(obj); } void virConnectCloseCallbackDataRegister(virConnectCloseCallbackDataPtr close,