Fix segfault when destroying uninitialized Comms class
This commit is contained in:
parent
110a539151
commit
3235006ae0
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ namespace Comms{
|
|||
}
|
||||
|
||||
Comms::~Comms(){
|
||||
if (index != INVALID_RECORD_INDEX && status){
|
||||
if (dataPage && index != INVALID_RECORD_INDEX && status){
|
||||
setStatus(COMM_STATUS_DISCONNECT | getStatus());
|
||||
}
|
||||
if (master){
|
||||
|
|
Loading…
Add table
Reference in a new issue