1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

_bookmark_destroy: follow normal logic

This commit is contained in:
Michael Vetter 2019-06-20 00:14:05 +02:00
parent b8c8059402
commit 7ca8ec3e6b

View File

@ -318,14 +318,12 @@ _bookmark_result_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
static void
_bookmark_destroy(Bookmark *bookmark)
{
if (!bookmark) {
return;
if (bookmark) {
free(bookmark->barejid);
free(bookmark->nick);
free(bookmark->password);
free(bookmark);
}
free(bookmark->barejid);
free(bookmark->nick);
free(bookmark->password);
free(bookmark);
}
static void