commit | 8ffad850ef5ae14287d0e185d478c9a35820482c | [log] [tgz] |
---|---|---|
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | Thu Jun 05 23:13:36 2014 -0700 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Jul 01 10:20:41 2014 +0200 |
tree | 6d3f53dde07032ba978b4d05d59edc7a1e6e7bbe | |
parent | c28322d10cd5f0529605b48684d2b82c9eb9c020 [diff] |
qom: object: Ignore refs/unrefs of NULL Just do nothing if passed NULL for a ref or unref. This avoids call sites that manage a combination of NULL or non-NULL pointers having to add iffery around every ref and unref. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>