diff options
-rw-r--r-- | src/jabber.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jabber.c b/src/jabber.c index 8b60a837..42f6a427 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -106,9 +106,7 @@ jabber_restart(void) { jabber_conn.conn_status = JABBER_STARTED; jabber_conn.presence = PRESENCE_OFFLINE; - if (jabber_conn.status != NULL) - free(jabber_conn.status); - jabber_conn.status = NULL; + FREE_SET_NULL(jabber_conn.status); } jabber_conn_status_t |