Commit dc44c998 authored by Laurent Montel's avatar Laurent Montel 😁

Don't check pointer before to delete it

svn path=/trunk/KDE/kdegames/kgoldrunner/; revision=1233424
parent b1f81b17
......@@ -1946,9 +1946,7 @@ bool KGrGame::initRecordingData (const Owner fileOwner, const QString & prefix,
const int levelNo)
{
// Initialise the recording.
if (recording) {
delete recording;
}
delete recording;
recording = new KGrRecording;
recording->content.fill (0, 4000);
recording->draws.fill (0, 400);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment