RevEmuAPI: Fix potential memleak, and change indents slighty.
This commit is contained in:
parent
9d07106068
commit
1e6113c90f
@ -196,6 +196,8 @@ bool RevEmuAPI::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
if (Rev_BGetPlayerInfoByUserID == NULL)
|
||||
{
|
||||
snprintf(error, maxlength, "Unable to find emulator symbol. 'Rev_BGetPlayerInfoByUserID'");
|
||||
|
||||
pLibSteamClient->CloseLibrary();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -204,6 +206,8 @@ bool RevEmuAPI::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
if (Rev_BGetPlayerInfoBySteamID == NULL)
|
||||
{
|
||||
snprintf(error, maxlength, "Unable to find emulator symbol. 'Rev_BGetPlayerInfoBySteamID'");
|
||||
|
||||
pLibSteamClient->CloseLibrary();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user