aboutsummaryrefslogtreecommitdiff
path: root/src/waffle/cgl/cgl_config.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/waffle/cgl/cgl_config.m')
-rw-r--r--src/waffle/cgl/cgl_config.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/waffle/cgl/cgl_config.m b/src/waffle/cgl/cgl_config.m
index b4a78a6..04688f4 100644
--- a/src/waffle/cgl/cgl_config.m
+++ b/src/waffle/cgl/cgl_config.m
@@ -236,11 +236,9 @@ cgl_config_choose(struct wcore_platform *wc_plat,
if (!cgl_config_check_attrs(plat, attrs))
return NULL;
- self = calloc(1, sizeof(*self));
- if (!self) {
- wcore_error(WAFFLE_ERROR_BAD_ALLOC);
+ self = wcore_calloc(sizeof(*self));
+ if (!self)
return NULL;
- }
ok = wcore_config_init(&self->wcore, wc_dpy, attrs);
if (!ok)