ami pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=af77941e73f330561217124faa6f71fc761c9ba6
commit af77941e73f330561217124faa6f71fc761c9ba6 Author: Amitesh Singh <[email protected]> Date: Wed Oct 14 20:27:57 2015 +0530 example: glview - use delete to deallocate memory CID: 1327363 --- src/examples/glview_cxx_example_01.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/glview_cxx_example_01.cc b/src/examples/glview_cxx_example_01.cc index f8b7101..bcf44d9 100644 --- a/src/examples/glview_cxx_example_01.cc +++ b/src/examples/glview_cxx_example_01.cc @@ -42,7 +42,7 @@ load_shader(GLData *gld, GLenum type, const char *shader_src ) gl->glGetShaderInfoLog(shader, info_len, NULL, info_log); printf("Error compiling shader:\n%s\n======\n%s\n======\n", info_log, shader_src ); - free(info_log); + delete [] info_log; } gl->glDeleteShader(shader); return 0; --
