Oops - missed one (malloc check).

SVN revision: 33364
This commit is contained in:
Kim Woelders 2008-01-06 15:07:47 +00:00
parent 8be6d59395
commit b2837013af
1 changed files with 6 additions and 0 deletions

View File

@ -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;