mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fix pointer dereferencing
Setting the pointer to NULL had no effect outside the function so far.
This commit is contained in:
parent
523d92e950
commit
a6f27d3ea7
@ -203,7 +203,6 @@ prefs_free_string(char *pref)
|
|||||||
if (pref) {
|
if (pref) {
|
||||||
g_free(pref);
|
g_free(pref);
|
||||||
}
|
}
|
||||||
pref = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -976,6 +976,5 @@ _occupant_free(Occupant *occupant)
|
|||||||
free(occupant->jid);
|
free(occupant->jid);
|
||||||
free(occupant->status);
|
free(occupant->status);
|
||||||
free(occupant);
|
free(occupant);
|
||||||
occupant = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,6 @@ buffer_free(ProfBuff buffer)
|
|||||||
{
|
{
|
||||||
g_slist_free_full(buffer->entries, (GDestroyNotify)_free_entry);
|
g_slist_free_full(buffer->entries, (GDestroyNotify)_free_entry);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
buffer = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user