emulator: opengl: minor fix and reformatting
This patches fixes a minor invalid usage of delete (instead of delete[]) and reformats the source code a little to make it more obvious. Change-Id: If853d12e74549abcc6682430c837b0f14da81fdc
This commit is contained in:
@@ -69,6 +69,7 @@ HostConnection *HostConnection::get()
|
||||
}
|
||||
if (stream->connect() < 0) {
|
||||
LOGE("Failed to connect to host (QemuPipeStream)!!!\n");
|
||||
delete stream;
|
||||
delete con;
|
||||
return NULL;
|
||||
}
|
||||
@@ -85,6 +86,7 @@ HostConnection *HostConnection::get()
|
||||
|
||||
if (stream->connect("10.0.2.2", STREAM_PORT_NUM) < 0) {
|
||||
LOGE("Failed to connect to host (TcpStream)!!!\n");
|
||||
delete stream;
|
||||
delete con;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user