9aa7aec ovirt: Fix OvirtApi memory handling

Authored and Committed by teuf 7 years ago
    ovirt: Fix OvirtApi memory handling
    
    The oVirt integration code in remote-viewer assumes that
    the caller owns a reference on the OvirtApi instance returned
    by ovirt_proxy_fetch_api{,finish}.
    This is incorrect as these 2 API calls have always been documented as
    being (transfer none). This was working so far because libgovirt was
    leaking an OvirtApi reference. This bug is fixed upstream, so we now get
    a warning on remote-viewer exit about trying to unref an invalid object.
    
    This commit fixes that by taking the ref we expect in OvirtForeignMenu,
    and by not releasing a ref we do not own in remote-viewer.c
    
        
file modified
+1 -0
file modified
+0 -2