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
1 changed files with 1 additions and 0 deletions

View File

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