Commit 989d6de6 authored by antma's avatar antma

fix memory leak during replaying CODE_binlog_set_chat_title

parent 364fe4eb
......@@ -628,6 +628,7 @@ void replay_log_event (void) {
struct chat *C = &_C->chat;
if (C->title) { tfree_str (C->title); }
C->title = fetch_str_dup ();
if (C->print_title) { tfree_str (C->print_title); }
C->print_title = create_print_name (C->id, C->title, 0, 0, 0);
#ifdef USE_LUA
lua_chat_update (C);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment