diff options
author | Chris Michael <cp.michael@samsung.com> | 2014-10-22 09:13:44 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2014-10-22 09:24:14 -0400 |
commit | bab8379248e756afb6c038c22f8c9c15c886059e (patch) | |
tree | c740256b5f01da4e63a3914ec5eb3d207677fad3 | |
parent | 826d6f1bc29529292d236c02e444d2ecb11da9e0 (diff) | |
download | efl-bab8379248e756afb6c038c22f8c9c15c886059e.tar.gz |
ecore-drm: Check for valid crtc before calling free
Summary: We cannot call drmModeFreeCrtc with an invalid crtc, so check
that it is set inside the output structure before trying to make this
call
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index af635b5757..6e139f47fe 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c @@ -571,7 +571,7 @@ _ecore_drm_output_free(Ecore_Drm_Output *output) if (output->model) eina_stringshare_del(output->model); if (output->make) eina_stringshare_del(output->make); - drmModeFreeCrtc(output->crtc); + if (output->crtc) drmModeFreeCrtc(output->crtc); free(output); } |