comparison gldragon.cpp @ 60:f645e38e3157

Use delete[] instead of delete for new[]'d memory.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 12 Dec 2019 17:51:53 +0200
parents 5a45c5c0a516
children 7b138613e2fc
comparison
equal deleted inserted replaced
59:5a45c5c0a516 60:f645e38e3157
380 { 380 {
381 char *buf = new char[bufLen]; 381 char *buf = new char[bufLen];
382 glGetShaderInfoLog(shader, bufLen, NULL, buf); 382 glGetShaderInfoLog(shader, bufLen, NULL, buf);
383 dmError("Shader compilation error:\n%s\n", 383 dmError("Shader compilation error:\n%s\n",
384 buf); 384 buf);
385 delete buf; 385 delete[] buf;
386 } 386 }
387 else 387 else
388 { 388 {
389 dmError("Shader compilation error occured, but no error information got.\n"); 389 dmError("Shader compilation error occured, but no error information got.\n");
390 } 390 }