forked from old/legacy-imlib2
parent
8be6d59395
commit
b2837013af
|
@ -228,6 +228,12 @@ __imlib_ProduceXImage(Display * d, Visual * v, int depth, int w, int h,
|
|||
return NULL;
|
||||
}
|
||||
list_si[list_num - 1] = malloc(sizeof(XShmSegmentInfo));
|
||||
if (!list_si[list_num - 1])
|
||||
{
|
||||
/* failed to allocate memory */
|
||||
list_num--;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* work on making a shared image */
|
||||
xim = NULL;
|
||||
|
|
Loading…
Reference in New Issue