real men don't do any error checking
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -411,6 +411,8 @@ ServerApp::_MessageLooper()
|
|||||||
// ServerWindow constructor will reply with port_id of a newly created port
|
// ServerWindow constructor will reply with port_id of a newly created port
|
||||||
window = new OffscreenServerWindow(title, this, clientReplyPort,
|
window = new OffscreenServerWindow(title, this, clientReplyPort,
|
||||||
looperPort, token, bitmap);
|
looperPort, token, bitmap);
|
||||||
|
else
|
||||||
|
free(title);
|
||||||
} else {
|
} else {
|
||||||
window = new ServerWindow(title, this, clientReplyPort, looperPort, token);
|
window = new ServerWindow(title, this, clientReplyPort, looperPort, token);
|
||||||
STRACE(("\nServerApp %s: New Window %s (%.1f,%.1f,%.1f,%.1f)\n",
|
STRACE(("\nServerApp %s: New Window %s (%.1f,%.1f,%.1f,%.1f)\n",
|
||||||
@@ -1992,7 +1994,6 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
for(int32 i=0; i<numStrings; i++) {
|
for(int32 i=0; i<numStrings; i++) {
|
||||||
link.Read<int32>(&lengthArray[i]);
|
link.Read<int32>(&lengthArray[i]);
|
||||||
link.Read<escapement_delta>(&deltaArray[i]);
|
link.Read<escapement_delta>(&deltaArray[i]);
|
||||||
stringArray[i] = new char[lengthArray[i]];
|
|
||||||
link.ReadString(&stringArray[i]);
|
link.ReadString(&stringArray[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2016,7 +2017,7 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int32 i=0; i<numStrings; i++)
|
for (int32 i=0; i<numStrings; i++)
|
||||||
delete[] stringArray[i];
|
free(stringArray[i]);
|
||||||
|
|
||||||
if (!success)
|
if (!success)
|
||||||
fLink.StartMessage(SERVER_FALSE);
|
fLink.StartMessage(SERVER_FALSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user