[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
parent
421abf8d59
commit
9e54d1deab
|
|
@ -101,6 +101,9 @@ QDirectFbIntegration::QDirectFbIntegration()
|
|||
DirectFBError("QDirectFBScreen: error initializing DirectFB",
|
||||
result);
|
||||
}
|
||||
|
||||
for (int i = 0; i < argc; ++i)
|
||||
delete[] argv[i];
|
||||
delete[] argv;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue