ecore-evas-drm: Cleanup drm outputs during shutdown

As we no longer cleanup outputs inside the ecore_drm_device_free
function (see previous commit), we should be cleaning up outputs here
as they are created during the _ecore_evas_drm_init function.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-01-21 09:24:06 -05:00
parent 17fa5dee65
commit 479bf37aec
1 changed files with 7 additions and 2 deletions

View File

@ -604,16 +604,21 @@ dev_err:
static int
_ecore_evas_drm_shutdown(void)
{
Ecore_Drm_Output *output;
if (--_ecore_evas_init_count != 0) return _ecore_evas_init_count;
ecore_drm_inputs_destroy(dev);
/* NB: No need to free outputs here. Is done in device free */
EINA_LIST_FREE(dev->outputs, output)
ecore_drm_output_free(output);
ecore_drm_sprites_destroy(dev);
ecore_drm_device_close(dev);
ecore_drm_launcher_disconnect(dev);
ecore_drm_device_free(dev);
dev = NULL;
ecore_drm_shutdown();
dev = NULL;
ecore_event_evas_shutdown();