Skip to content
  • Marco Trevisan's avatar
    device: Don't leak the user on claim error while deleting prints · 88907321
    Marco Trevisan authored
    When using the delete method we check if the device was claimed, if this
    fails because the device is already in use we return an error, but we don't
    free the user.
    
    While this could be fixed by just a further g_free call, let's just remove
    remove the other manual free calls, and use an auto-pointer instead for this
    function.
    88907321