diff options
author | Hisham <hisham@gobolinux.org> | 2016-02-02 15:53:02 +0100 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-02-02 15:53:02 +0100 |
commit | b54d2dde407921caa7561dde6b45831ba93d0840 (patch) | |
tree | cd81eea35dd65e46d22f2801ea403e1efc06eb59 /ScreenManager.c | |
parent | a1f7f2869ec2bd860d5b4e4b39736ca877afdf6f (diff) |
Check for failure in allocations.
Diffstat (limited to 'ScreenManager.c')
-rw-r--r-- | ScreenManager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ScreenManager.c b/ScreenManager.c index 1a9d9f03..a33d3420 100644 --- a/ScreenManager.c +++ b/ScreenManager.c @@ -46,7 +46,7 @@ typedef struct ScreenManager_ { ScreenManager* ScreenManager_new(int x1, int y1, int x2, int y2, Orientation orientation, const Header* header, const Settings* settings, bool owner) { ScreenManager* this; - this = malloc(sizeof(ScreenManager)); + this = xMalloc(sizeof(ScreenManager)); this->x1 = x1; this->y1 = y1; this->x2 = x2; |