mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fix printer reference count
This commit is contained in:
@@ -1042,10 +1042,11 @@ printer_DeviceServiceEntry
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if ((error = printer_register(pEntryPoints, printer)))
|
||||
error = printer_register(pEntryPoints, printer);
|
||||
printer->ReleaseRef(printer);
|
||||
if (error)
|
||||
{
|
||||
WLog_ERR(TAG, "printer_register failed with error %" PRIu32 "!", error);
|
||||
printer->ReleaseRef(printer);
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user