mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added jid_destroy()
This commit is contained in:
parent
b6f3667390
commit
d827abddb7
12
src/jid.c
12
src/jid.c
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include "jid.h"
|
#include "jid.h"
|
||||||
|
|
||||||
Jid *
|
Jid *
|
||||||
@ -110,6 +111,17 @@ jid_create_room_jid(const char * const room, const char * const nick)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
jid_destroy(Jid *jid)
|
||||||
|
{
|
||||||
|
FREE_SET_NULL(jid->localpart);
|
||||||
|
FREE_SET_NULL(jid->domainpart);
|
||||||
|
FREE_SET_NULL(jid->resourcepart);
|
||||||
|
FREE_SET_NULL(jid->barejid);
|
||||||
|
FREE_SET_NULL(jid->fulljid);
|
||||||
|
FREE_SET_NULL(jid);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Given a full room JID of the form
|
* Given a full room JID of the form
|
||||||
* room@server/nick
|
* room@server/nick
|
||||||
|
Loading…
Reference in New Issue
Block a user