Missing object check for new desk.

SVN revision: 12774
This commit is contained in:
xcomputerman 2005-01-05 08:39:25 +00:00 committed by xcomputerman
parent 9b89c81a65
commit 49ac422b1d
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ e_desk_new(E_Zone *zone)
E_Desk *desk;
char name[40];
E_OBJECT_CHECK_RETURN(zone, NULL);
desk = E_OBJECT_ALLOC(E_Desk, _e_desk_free);
if (!desk) return NULL;