diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2014-06-05 23:13:36 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-01 10:20:41 +0200 |
commit | 8ffad850ef5ae14287d0e185d478c9a35820482c (patch) | |
tree | 6d3f53dde07032ba978b4d05d59edc7a1e6e7bbe /tests/tmp105-test.c | |
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>
Diffstat (limited to 'tests/tmp105-test.c')
0 files changed, 0 insertions, 0 deletions