diff options
author | James Booth <boothj5@gmail.com> | 2013-08-04 17:20:46 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-08-04 17:20:46 +0100 |
commit | 3588a9d7761669f6d1c6776a07cc0555afd4b084 (patch) | |
tree | 7a1d204a8d2fcc4f3b0ac7f5278b978446c54ad5 /src/ui/core.c | |
parent | 87c627710906171b3696e65fac985bd50c43c6f3 (diff) | |
parent | 20dff5fe2f0251d39a1667b547a49cef3b115899 (diff) | |
download | profani-tty-3588a9d7761669f6d1c6776a07cc0555afd4b084.tar.gz |
Merge remote-tracking branch 'dmitry/nextdev-patches' into nextdev
Diffstat (limited to 'src/ui/core.c')
-rw-r--r-- | src/ui/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 83839952..b33186ec 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -293,8 +293,9 @@ ui_incoming_msg(const char * const from, const char * const message, GTimeVal *tv_stamp, gboolean priv) { gboolean win_created = FALSE; - char *display_from; + char *display_from = NULL; win_type_t win_type; + if (priv) { win_type = WIN_PRIVATE; display_from = get_nick_from_full_jid(from); @@ -438,7 +439,7 @@ ui_incoming_msg(const char * const from, const char * const message, if (prefs_get_boolean(PREF_NOTIFY_MESSAGE)) notify_message(display_from, ui_index); - FREE_SET_NULL(display_from); + free(display_from); } void |