object: fix potential leak in getters
commit560f19f162529d691619ac69ed032321c7f5f1fb
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 7 Jun 2017 16:35:54 +0000 (7 20:35 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 19 Jun 2017 12:56:29 +0000 (19 14:56 +0200)
tree5252e26b143e8992e39107a31202a08282c572d1
parenta2740ad584839ac84f3cdb2d928de93a0d7f4e72
object: fix potential leak in getters

If the property is not of the requested type, the getters will leak a
QObject.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170607163635.17635-3-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qom/object.c