summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-10-14 20:32:51 +0530
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commitef98575fa3336139d448802e44b424b3dc555b08 (patch)
tree0034b0a54ff1ec480850243c9c502cc69e08d2f5
parentc73c26add308461fa833a81dd079ec3d5aa6a4d2 (diff)
example: glview - use delete to deallocate memory
CID: 1327362
-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 bcf44d949..b94d8c26c 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)
98 98
99 gl->glGetProgramInfoLog(gld->program, info_len, NULL, info_log); 99 gl->glGetProgramInfoLog(gld->program, info_len, NULL, info_log);
100 printf("Error linking program:\n%s\n", info_log); 100 printf("Error linking program:\n%s\n", info_log);
101 free(info_log); 101 delete [] info_log;
102 } 102 }
103 gl->glDeleteProgram(gld->program); 103 gl->glDeleteProgram(gld->program);
104 return 0; 104 return 0;