diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_xcbshm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_out/video_out_xcbshm.c b/src/video_out/video_out_xcbshm.c index a7c3b3028..1491832ea 100644 --- a/src/video_out/video_out_xcbshm.c +++ b/src/video_out/video_out_xcbshm.c @@ -965,7 +965,7 @@ static int ImlibPaletteLUTGet(xshm_driver_t *this) { char *retval = xcb_get_property_value(prop_reply); j = 1 + retval[0]*4; - this->yuv2rgb_cmap = malloc(sizeof(uint8_t) * 32 * 32 * 32); + this->yuv2rgb_cmap = xine_xcalloc(sizeof(uint8_t), 32 * 32 * 32); for (i = 0; i < 32 * 32 * 32 && j < num_ret; i++) this->yuv2rgb_cmap[i] = retval[1+4*retval[j++]+3]; |