summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_buffer.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-16 13:13:38 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-16 13:13:38 -0600
commitc08920820b386b48b57df6eac3dbacdfb37c1bd7 (patch)
tree20ea32449b738d517c40f3fba7b683a8f231d5a1 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parent63c6724f089c75a8fde62b1f160f2b25382bca16 (diff)
ecore_wl2: Don't try to close drm_fd if we never opened it
derp.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_buffer.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index 22ecc5c29d..9363c1be9c 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -453,7 +453,7 @@ _buffer_manager_deref(void)
453 if (buffer_manager->manager_destroy) buffer_manager->manager_destroy(); 453 if (buffer_manager->manager_destroy) buffer_manager->manager_destroy();
454 free(buffer_manager); 454 free(buffer_manager);
455 buffer_manager = NULL; 455 buffer_manager = NULL;
456 close(drm_fd); 456 if (drm_fd >=0) close(drm_fd);
457} 457}
458 458
459/* Currently no callers, but that will change... 459/* Currently no callers, but that will change...