summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-10-14 20:27:57 +0530
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commitc73c26add308461fa833a81dd079ec3d5aa6a4d2 (patch)
tree5630ac9e7220d266ef6780440002e9f7a1cd11ff
parentb34bf3d257e2e3af7d5049e5e278c0c3473b32fc (diff)
example: glview - use delete to deallocate memory
CID: 1327363
-rw-r--r--src/examples/glview_cxx_example_01.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/glview_cxx_example_01.cc b/src/examples/glview_cxx_example_01.cc
index f8b7101e3..bcf44d949 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 )
42 42
43 gl->glGetShaderInfoLog(shader, info_len, NULL, info_log); 43 gl->glGetShaderInfoLog(shader, info_len, NULL, info_log);
44 printf("Error compiling shader:\n%s\n======\n%s\n======\n", info_log, shader_src ); 44 printf("Error compiling shader:\n%s\n======\n%s\n======\n", info_log, shader_src );
45 free(info_log); 45 delete [] info_log;
46 } 46 }
47 gl->glDeleteShader(shader); 47 gl->glDeleteShader(shader);
48 return 0; 48 return 0;