summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 32e7f21..00247ac 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1264,8 +1264,10 @@ drmmode_set_mode(xf86CrtcPtr crtc, struct drmmode_fb *fb, DisplayModePtr mode,
if (output->crtc != crtc)
continue;
- if (!drmmode_output->mode_output)
- return FALSE;
+ if (!drmmode_output->mode_output) {
+ ret = FALSE;
+ goto out;
+ }
output_ids[output_count] = drmmode_output->mode_output->connector_id;
output_count++;
@@ -1285,6 +1287,7 @@ drmmode_set_mode(xf86CrtcPtr crtc, struct drmmode_fb *fb, DisplayModePtr mode,
"failed to set mode: %s\n", strerror(errno));
}
+out:
free(output_ids);
return ret;
}