fix memory leak during replaying CODE_binlog_set_chat_title
This commit is contained in:
parent
ceb9422ae9
commit
33dac4b4a3
1 changed files with 1 additions and 0 deletions
1
binlog.c
1
binlog.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue