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:
af77941
)
example: glview - use delete to deallocate memory
author
Amitesh Singh
<amitesh.sh@samsung.com>
Wed, 14 Oct 2015 15:02:51 +0000
(20:32 +0530)
committer
Amitesh Singh
<amitesh.sh@samsung.com>
Wed, 14 Oct 2015 15:03:13 +0000
(20:33 +0530)
CID: 1327362
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
bcf44d9
..
b94d8c2
100644
(file)
--- 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;