ecore_wl2: Don't try to close drm_fd if we never opened it

derp.
This commit is contained in:
Derek Foreman 2017-11-16 13:13:38 -06:00
parent 63c6724f08
commit c08920820b
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ _buffer_manager_deref(void)
if (buffer_manager->manager_destroy) buffer_manager->manager_destroy();
free(buffer_manager);
buffer_manager = NULL;
close(drm_fd);
if (drm_fd >=0) close(drm_fd);
}
/* Currently no callers, but that will change...