Check if calloc succeded.

SVN revision: 14818
This commit is contained in:
sebastid 2005-05-17 13:51:14 +00:00 committed by sebastid
parent ee61d24828
commit d34c86e2ce
1 changed files with 3 additions and 0 deletions

View File

@ -468,6 +468,7 @@ e_border_move(E_Border *bd, int x, int y)
E_Border_Pending_Move_Resize *pnd;
pnd = E_NEW(E_Border_Pending_Move_Resize, 1);
if (!pnd) return;
pnd->move = 1;
pnd->x = x;
pnd->y = y;
@ -504,6 +505,7 @@ e_border_resize(E_Border *bd, int w, int h)
E_Border_Pending_Move_Resize *pnd;
pnd = E_NEW(E_Border_Pending_Move_Resize, 1);
if (!pnd) return;
pnd->resize = 1;
pnd->w = w;
pnd->h = h;
@ -542,6 +544,7 @@ e_border_move_resize(E_Border *bd, int x, int y, int w, int h)
E_Border_Pending_Move_Resize *pnd;
pnd = E_NEW(E_Border_Pending_Move_Resize, 1);
if (!pnd) return;
pnd->move = 1;
pnd->resize = 1;
pnd->x = x;