From fd10a7de2174cd4dc289dd226e81706487734e3a Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Wed, 14 Oct 2015 20:32:51 +0530 Subject: [PATCH] example: glview - use delete to deallocate memory CID: 1327362 --- legacy/elementary/src/examples/glview_cxx_example_01.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/examples/glview_cxx_example_01.cc b/legacy/elementary/src/examples/glview_cxx_example_01.cc index bcf44d9..b94d8c2 100644 --- a/legacy/elementary/src/examples/glview_cxx_example_01.cc +++ b/legacy/elementary/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; -- 2.7.4