
On Tue, Sep 27, 2011 at 02:59:11PM +0300, Zeeshan Ali (Khattak) wrote:
On Tue, Sep 27, 2011 at 11:56 AM, Daniel P. Berrange <berrange@redhat.com> wrote:
Since the return value is annotated '(transfer full)' you need todo 'g_object_ref(domain)' before putting it into the hash table, since the hash needs to keep hold of a reference. Also you want to have a g_mutex_lock/unlock either side of use of the hash table.
K, ACK otherwise?
Yep. 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 :|