projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cee55b
)
example: glview - use delete to deallocate memory
author
Amitesh Singh
<amitesh.sh@samsung.com>
Wed, 14 Oct 2015 14:57:57 +0000
(20:27 +0530)
committer
Amitesh Singh
<amitesh.sh@samsung.com>
Wed, 14 Oct 2015 15:00:06 +0000
(20:30 +0530)
CID: 1327363
src/examples/glview_cxx_example_01.cc
patch
|
blob
|
history
diff --git
a/src/examples/glview_cxx_example_01.cc
b/src/examples/glview_cxx_example_01.cc
index
f8b7101
..
bcf44d9
100644
(file)
--- 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;