diff options
author | Junkyeong Kim <jk0430.kim@samsung.com> | 2017-02-13 16:23:47 +0900 |
---|---|---|
committer | Junkyeong Kim <jk0430.kim@samsung.com> | 2017-02-13 16:23:51 +0900 |
commit | 5a62970d15cc613ffe9b8a4bd0ba1fac76b49e29 (patch) | |
tree | 404453573eedbc2b55583e9cf482380b1c9f8bce | |
parent | 6283a40c701b6e4b9ff8e5b922e2f1cab8199c3e (diff) | |
download | libtdm-drm-5a62970d15cc613ffe9b8a4bd0ba1fac76b49e29.tar.gz libtdm-drm-5a62970d15cc613ffe9b8a4bd0ba1fac76b49e29.tar.bz2 libtdm-drm-5a62970d15cc613ffe9b8a4bd0ba1fac76b49e29.zip |
execute drmModeFreeCrtc before return
Change-Id: I15476b4108efe41d0518e74303f034bfff375261
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r-- | src/tdm_drm_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c index ad0e6d6..312de60 100644 --- a/src/tdm_drm_display.c +++ b/src/tdm_drm_display.c @@ -297,8 +297,10 @@ _tdm_drm_display_commit_layer(tdm_drm_layer_data *layer_data) crtc_w = crtc->width; if (crtc_w == 0) { TDM_ERR("getting crtc width failed"); + drmModeFreeCrtc(crtc); return TDM_ERROR_OPERATION_FAILED; } + drmModeFreeCrtc(crtc); } layer_data->display_buffer_changed = 0; |