Re: [libvirt] [PATCH 8/8] Only add the timer when a callback is registered

2011-12-14 Thread Eric Blake
On 12/13/2011 05:38 PM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com The lifetime of the virDomainEventState object is tied to the lifetime of the driver, which in stateless drivers is tied to the lifetime of the virConnectPtr. If we add remove a timer when

[libvirt] [PATCH 8/8] Only add the timer when a callback is registered

2011-12-13 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com The lifetime of the virDomainEventState object is tied to the lifetime of the driver, which in stateless drivers is tied to the lifetime of the virConnectPtr. If we add remove a timer when allocating/freeing the virDomainEventState object, we can get