ecore-drm2: Check for valid fb before using trying to use it

This commit is contained in:
Christopher Michael 2019-04-03 11:10:11 -04:00
parent ccd0576df8
commit f7872ad17b
1 changed files with 3 additions and 0 deletions

View File

@ -244,11 +244,14 @@ _ecore_drm2_fb_buffer_release(Ecore_Drm2_Output *output EINA_UNUSED, Ecore_Drm2_
{
Ecore_Drm2_Fb *fb = s->fb;
if (!fb) goto out;
if (fb->status_handler)
fb->status_handler(fb, ECORE_DRM2_FB_STATUS_RELEASE, fb->status_data);
_ecore_drm2_fb_deref(fb);
s->fb = NULL;
out:
if (_ecore_drm2_use_atomic)
{
if (s->atomic_req)