bin/media_client: Fix memory leak

Fix leak of memory allocated to 'app'.
Pointed out by Clang Static Analyzer.

Change-Id: I59d39b76a18893bd284db1d75e40620bb1aee9e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3480
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
Murai Takashi 2020-12-08 20:27:37 +09:00 committed by Axel Dörfler
parent 65b3fe452a
commit 2c08d25325

View File

@ -27,8 +27,7 @@ int main(int argc, char *argv[])
return 0;
}
BApplication* app = new BApplication(
"application/x-vnd.Haiku-media_client");
BApplication app("application/x-vnd.Haiku-media_client");
int ret = 0;
if (strcmp(argv[1], "play") == 0) {