discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c854b91c5ace6daa104d5c2af0d6926a7aa9ca08

commit c854b91c5ace6daa104d5c2af0d6926a7aa9ca08
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Apr 1 15:54:37 2016 -0400

    ecore-drm: do not attempt to destroy sprite outputs which have never 
repainted
    
    silences a surprisingly large number of errors on shutdown
    
    @fix
---
 src/lib/ecore_drm/ecore_drm_sprites.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

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

-- 


Reply via email to