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:
Michael Lotz 2008-09-22 18:03:39 +00:00
parent 708f792ecc
commit e2891a435a

View File

@ -145,6 +145,7 @@ StyledEditApp::DispatchMessage(BMessage *msg, BHandler *handler)
cwd = ""; cwd = "";
ArgvReceivedEx(argc, argv, cwd); ArgvReceivedEx(argc, argv, cwd);
delete[] argv;
} else } else
BApplication::DispatchMessage(msg, handler); BApplication::DispatchMessage(msg, handler);
} }