[directfb] Fix memory leak when passing arguments to directFB

We need to delete the array but also the elements inside it.

Change-Id: Ib61beeca569802638b9ff3b94ede79c0beebb399
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
bb10
Holger Hans Peter Freyther 2011-09-19 01:04:59 +02:00 committed by Qt by Nokia
parent 421abf8d59
commit 9e54d1deab
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ QDirectFbIntegration::QDirectFbIntegration()
DirectFBError("QDirectFBScreen: error initializing DirectFB",
result);
}
for (int i = 0; i < argc; ++i)
delete[] argv[i];
delete[] argv;