Don't leak the argv array that is passed to ArgvReceivedEx(). Its contents
are only used to open supplied files by name, it doesn't take ownership. Fixes CID 934. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27693 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
708f792ecc
commit
e2891a435a
@ -145,6 +145,7 @@ StyledEditApp::DispatchMessage(BMessage *msg, BHandler *handler)
|
||||
cwd = "";
|
||||
|
||||
ArgvReceivedEx(argc, argv, cwd);
|
||||
delete[] argv;
|
||||
} else
|
||||
BApplication::DispatchMessage(msg, handler);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user