summaryrefslogtreecommitdiffstats
path: root/xorg
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-08-08 12:17:46 -0700
committerJim Grandy <jgrandy@authentic8.com>2013-08-22 12:57:00 -0700
commit02d550e11b7eda54725a0f8ea469fe6421d1b8d4 (patch)
tree0610e7547d508e19c6397dbbc596cea77826c436 /xorg
parenta308d2e25c4e566669b86312d1bcf8a32c3cca1f (diff)
downloadxrdp-proprietary-02d550e11b7eda54725a0f8ea469fe6421d1b8d4.tar.gz
xrdp-proprietary-02d550e11b7eda54725a0f8ea469fe6421d1b8d4.zip
X11rdp: valgrind font fix
Diffstat (limited to 'xorg')
-rw-r--r--xorg/X11R7.6/rdp/rdpglyph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdpglyph.c b/xorg/X11R7.6/rdp/rdpglyph.c
index 11a45ee7..954fbbe4 100644
--- a/xorg/X11R7.6/rdp/rdpglyph.c
+++ b/xorg/X11R7.6/rdp/rdpglyph.c
@@ -386,6 +386,10 @@ get_color(PicturePtr pPicture)
return 0;
}
pi32 = pixman_image_get_data(src);
+ if (pi32 == 0)
+ {
+ return 0;
+ }
rv = *pi32;
LLOGLN(10, ("get_color: 0x%8.8x width %d height %d ", rv,
pixman_image_get_width(src),