projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dc5b73
)
hw/gles2_escommon_calls.c: do not redefine pixel variable
author
Igor Mitsyanko
<i.mitsyanko@samsung.com>
Thu, 26 Jul 2012 07:28:38 +0000
(11:28 +0400)
committer
Evgeny Voevodin
<e.voevodin@samsung.com>
Fri, 27 Jul 2012 06:31:52 +0000
(10:31 +0400)
pixel variable was defined twice in glCompressedTexImage2D function, because of
these data was never transfered and we had memory leak.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
hw/gles2_escommon_calls.c
patch
|
blob
|
history
diff --git
a/hw/gles2_escommon_calls.c
b/hw/gles2_escommon_calls.c
index 3aafdfe4d77de2b308ccdca8ddefb6ac069c067c..06404b790ac54ced4948aaf2c88445fc3d906440 100644
(file)
--- a/
hw/gles2_escommon_calls.c
+++ b/
hw/gles2_escommon_calls.c
@@
-309,7
+309,7
@@
GLES2_CB(glCompressedTexImage2D)
char *pixels = NULL;
if (imageSize > 0 && data) {
-
char*
pixels = malloc(imageSize);
+ pixels = malloc(imageSize);
gles2_transfer(s, data, imageSize, pixels, 0);
}
GLES2_BARRIER_ARG_NORET;