forked from enlightenment/efl
example: glview - use delete to deallocate memory
CID: 1327363
This commit is contained in:
parent
8ab665bab0
commit
78cde26a79
|
@ -42,7 +42,7 @@ load_shader(GLData *gld, GLenum type, const char *shader_src )
|
||||||
|
|
||||||
gl->glGetShaderInfoLog(shader, info_len, NULL, info_log);
|
gl->glGetShaderInfoLog(shader, info_len, NULL, info_log);
|
||||||
printf("Error compiling shader:\n%s\n======\n%s\n======\n", info_log, shader_src );
|
printf("Error compiling shader:\n%s\n======\n%s\n======\n", info_log, shader_src );
|
||||||
free(info_log);
|
delete [] info_log;
|
||||||
}
|
}
|
||||||
gl->glDeleteShader(shader);
|
gl->glDeleteShader(shader);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue