[Workman-devel] [PATCH] WorkmanObject: set object ptr to NULL in dispose
Daniel P. Berrange
berrange at redhat.com
Thu Mar 7 15:10:37 UTC 2013
On Thu, Mar 07, 2013 at 08:48:49AM -0600, Josh Poimboeuf wrote:
> In WorkmanObject, the dispose() method can be called more than once, so
> set the object pointer to NULL after unreferencing the object.
>
> Technically, the unref could be moved to finalize, but it's safer to
> leave it in dispose in case WorkmanAttribute ever changed to store a
> reference to WorkmanObject.
> ---
> workman/workman-object.c | 1 +
> 1 file changed, 1 insertion(+)
ACK
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the Workman-devel
mailing list