diff options
Diffstat (limited to 'sesman/chansrv/rail.c')
-rw-r--r-- | sesman/chansrv/rail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c index 3b8b2a0c..fb1075c6 100644 --- a/sesman/chansrv/rail.c +++ b/sesman/chansrv/rail.c @@ -1235,13 +1235,16 @@ rail_win_send_text(Window win) s_mark_end(s); send_rail_drawing_orders(s->data, (int)(s->end - s->data)); free_stream(s); - XFree(data); /* update rail window data */ rwd->valid |= RWD_TITLE; crc = get_string_crc(data); rwd->title_crc = crc; rail_set_window_data(win, rwd); } + if (data != 0) + { + XFree(data); + } XFree(rwd); return 0; } |