client/ClientRead: call Break() before Close()
Referencing the attribute "partition" is illegal after Close(), because Close() deletes "this".
This commit is contained in:
parent
b46cf57d98
commit
e6389ff5a1
2
NEWS
2
NEWS
|
@ -5,7 +5,7 @@ ver 0.19.17 (not yet released)
|
|||
* fix spurious seek error "Failed to allocate silence buffer"
|
||||
* replay gain: fix "replay_gain_handler mixer" setting
|
||||
* DSD: use 0x69 as silence pattern
|
||||
* fix use-after-free bug on "close"
|
||||
* fix use-after-free bug on "close" and "kill"
|
||||
|
||||
ver 0.19.16 (2016/06/13)
|
||||
* faster seeking
|
||||
|
|
|
@ -52,8 +52,8 @@ Client::OnSocketInput(void *data, size_t length)
|
|||
break;
|
||||
|
||||
case CommandResult::KILL:
|
||||
Close();
|
||||
partition.instance.event_loop->Break();
|
||||
Close();
|
||||
return InputResult::CLOSED;
|
||||
|
||||
case CommandResult::FINISH:
|
||||
|
|
Loading…
Reference in New Issue