Fix called C++ object pointer is null

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
Fix size argument is greater than the length of the destination buffer

Signed-off-by: Matt Madia <mattmadia@gmail.com>
Adjust array length.

As per Axel: The "+1" is not needed; B_FILE_NAME_LENGTH already includes the
terminating null byte.
Fix memory leak for threeDaysAgoMenu

Fixes #9938.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
Fix mismatching allocation and deallocation

Fixes #9901.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
Use delete[] instead of delete. Fixes #9985.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
GridLayout.cpp: use delete[] instead of delete. Fixes #9875.

Signed-off-by: Matt Madia <mattmadia@gmail.com>