mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Remove superfluous pointer null checks
This commit is contained in:
parent
7bfd53ba58
commit
5cc8ad946e
10 changed files with 20 additions and 46 deletions
|
@ -97,8 +97,7 @@ public:
|
|||
private:
|
||||
void drop()
|
||||
{
|
||||
if(data)
|
||||
delete[] data;
|
||||
delete[] data;
|
||||
}
|
||||
T *data;
|
||||
unsigned int m_size;
|
||||
|
@ -214,8 +213,7 @@ private:
|
|||
(*refcount)--;
|
||||
if(*refcount == 0)
|
||||
{
|
||||
if(data)
|
||||
delete[] data;
|
||||
delete[] data;
|
||||
delete refcount;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -861,7 +861,7 @@ err_exit:
|
|||
mpz_clear(usr->a);
|
||||
mpz_clear(usr->A);
|
||||
mpz_clear(usr->S);
|
||||
if (usr->ng) delete_ng(usr->ng);
|
||||
delete_ng(usr->ng);
|
||||
srp_free(usr->username);
|
||||
srp_free(usr->username_verifier);
|
||||
if (usr->password) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue