Problem: Occasional crash when using a channel. (Marek)
Solution: Decrement reference count later. (closes #2315)
channel->ch_close_cb = NULL;
channel->ch_close_partial = NULL;
- --channel->ch_refcount;
-
if (channel_need_redraw)
{
channel_need_redraw = FALSE;
/* any remaining messages are useless now */
for (part = PART_SOCK; part < PART_IN; ++part)
drop_messages(channel, part);
+
+ --channel->ch_refcount;
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1286,
/**/
1285,
/**/