From d0ab292d73902f7fe5696436ccd64d913bdc8719 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Mon, 7 Jan 2013 20:24:04 +0200 Subject: [PATCH] jabber.c: added assert before reconnect_timer allocation Development build will be terminated if reconnect_timer was allocated previously and wasn't destroyed. --- src/jabber.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jabber.c b/src/jabber.c index 0452183d..3372f845 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -22,6 +22,7 @@ #include #include +#include #include @@ -800,6 +801,7 @@ _connection_handler(xmpp_conn_t * const conn, } else if (jabber_conn.conn_status == JABBER_CONNECTED) { prof_handle_lost_connection(); if (prefs_get_reconnect() != 0) { + assert(reconnect_timer == NULL); reconnect_timer = g_timer_new(); } xmpp_stop(ctx);