Fixed resource leak in error code path. CID 5888.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40878 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
feacc2de79
commit
54fff0c456
@ -1153,6 +1153,7 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver& link)
|
||||
if (parent != NULL && newView != NULL)
|
||||
parent->AddChild(newView);
|
||||
else {
|
||||
delete newView;
|
||||
debug_printf("ServerWindow %s: Message AS_VIEW_CREATE: "
|
||||
"parent or newView NULL!!\n", fTitle);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user