forked from enlightenment/efl
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>
This commit is contained in:
parent
826d6f1bc2
commit
bab8379248
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue