projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb68254
)
Coverity: Resource leak: CID 400025
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Wed, 29 Feb 2012 19:52:07 +0000
(14:52 -0500)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Wed, 29 Feb 2012 19:52:07 +0000
(14:52 -0500)
* src/ui/X11/glyphs-x.c (x_init_image_instance_from_eimage): Free
pixtbl if we are not using it...
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/ui/X11/glyphs-x.c
patch
|
blob
|
history
diff --git
a/src/ui/X11/glyphs-x.c
b/src/ui/X11/glyphs-x.c
index
e2290c3
..
1b30874
100644
(file)
--- a/
src/ui/X11/glyphs-x.c
+++ b/
src/ui/X11/glyphs-x.c
@@
-870,9
+870,12
@@
x_init_image_instance_from_eimage(Lisp_Image_Instance * ii,
init_image_instance_from_x_image(ii, ximage, dest_mask,
cmap, pixtbl, npixels,
slices, instantiator);
- else
+ else {
+ if (pixtbl)
+ xfree(pixtbl);
image_instance_add_x_image(ii, ximage, slice,
instantiator);
+ }
if (ximage) {
if (ximage->data) {