ami pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=80a76aa93b310dec00c7e7d57a48747d690101af
commit 80a76aa93b310dec00c7e7d57a48747d690101af Author: Amitesh Singh <[email protected]> Date: Wed Oct 14 20:32:51 2015 +0530 example: glview - use delete to deallocate memory CID: 1327362 --- 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 bcf44d9..b94d8c2 100644 --- a/src/examples/glview_cxx_example_01.cc +++ b/src/examples/glview_cxx_example_01.cc @@ -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; --
