From: Mike Blumenkrantz Date: Fri, 1 Apr 2016 19:54:37 +0000 (-0400) Subject: ecore-drm: do not attempt to destroy sprite outputs which have never repainted X-Git-Tag: upstream/1.20.0~6979 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c854b91c5ace6daa104d5c2af0d6926a7aa9ca08;p=platform%2Fupstream%2Fefl.git ecore-drm: do not attempt to destroy sprite outputs which have never repainted silences a surprisingly large number of errors on shutdown @fix --- diff --git a/src/lib/ecore_drm/ecore_drm_sprites.c b/src/lib/ecore_drm/ecore_drm_sprites.c index e8d807c..bcc6669 100644 --- a/src/lib/ecore_drm/ecore_drm_sprites.c +++ b/src/lib/ecore_drm/ecore_drm_sprites.c @@ -94,10 +94,13 @@ ecore_drm_sprites_destroy(Ecore_Drm_Device *dev) EINA_LIST_FREE(dev->sprites, sprite) { - ecore_drm_sprites_fb_set(sprite, 0, 0); + if (sprite->output) + { + ecore_drm_sprites_fb_set(sprite, 0, 0); - _ecore_drm_output_fb_release(sprite->output, sprite->current_fb); - _ecore_drm_output_fb_release(sprite->output, sprite->next_fb); + _ecore_drm_output_fb_release(sprite->output, sprite->current_fb); + _ecore_drm_output_fb_release(sprite->output, sprite->next_fb); + } free(sprite); }