mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
_bookmark_destroy: follow normal logic
This commit is contained in:
parent
b8c8059402
commit
7ca8ec3e6b
@ -318,15 +318,13 @@ _bookmark_result_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
|||||||
static void
|
static void
|
||||||
_bookmark_destroy(Bookmark *bookmark)
|
_bookmark_destroy(Bookmark *bookmark)
|
||||||
{
|
{
|
||||||
if (!bookmark) {
|
if (bookmark) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
free(bookmark->barejid);
|
free(bookmark->barejid);
|
||||||
free(bookmark->nick);
|
free(bookmark->nick);
|
||||||
free(bookmark->password);
|
free(bookmark->password);
|
||||||
free(bookmark);
|
free(bookmark);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_send_bookmarks(void)
|
_send_bookmarks(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user