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:
Chris Michael 2014-10-22 09:13:44 -04:00
parent 826d6f1bc2
commit bab8379248
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}