example: glview - use delete to deallocate memory

CID: 1327362
This commit is contained in:
Amitesh Singh 2015-10-14 20:32:51 +05:30
parent 78cde26a79
commit fd10a7de21
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ init_shaders(GLData *gld)
gl->glGetProgramInfoLog(gld->program, info_len, NULL, info_log);
printf("Error linking program:\n%s\n", info_log);
free(info_log);
delete [] info_log;
}
gl->glDeleteProgram(gld->program);
return 0;