Fix crash in Database::GetSharedBank
Code:
void Database::GetSharedBank(int32 account_id,Shared_Bank_Struct* sharedbank){ At the very end of this function, mysql_free_result(result) should not be called if RunQuery() returned false. This crashed on my machine because my DB layout was a little wrong but could crash on other occasions as well. Maybe DBcore::RunQuery should set *result to NULL at the beginning of the function so that you can check if it needs to be freed in the code elsewhere (like above): Code:
if(result) mysql_free_result(result); Hope that helps and please to ignore if I am totally wrong :P Markus |
K Thanks, Ill fix it
I wasnt aware there was a bug with my function :P |
All times are GMT -4. The time now is 08:04 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.