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:
David 'Digit' Turner
2011-10-19 17:54:20 +02:00
parent 207118ad6d
commit 0e205e6d6e
3 changed files with 13 additions and 6 deletions

View File

@@ -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;
}