diff options
author | vvaltman <vvaltman@neon> | 2015-05-07 12:05:19 +0300 |
---|---|---|
committer | vvaltman <vvaltman@neon> | 2015-05-07 12:05:19 +0300 |
commit | 16830c9872745a73b77767db477ecf1f5463bf8f (patch) | |
tree | 746e5fe7a4397792e1c3972eebacfc75b64469a8 /binlog.c | |
parent | a4588778f998d0f27fb7e342a84b2b4ab56274dc (diff) |
fixed SIGSEGV on deleting empty photo
Diffstat (limited to 'binlog.c')
-rw-r--r-- | binlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -500,7 +500,7 @@ static int fetch_comb_binlog_chat_new (struct tgl_state *TLS, struct tl_ds_binlo } if (DS_U->photo) { - if (C->flags & TGLPF_HAS_PHOTO) { + if (C->photo) { tgls_free_photo (TLS, C->photo); } C->photo = tglf_fetch_alloc_photo_new (TLS, DS_U->photo); |