ecore_wl2: Reset buffer_manager to NULL on failure
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 15 Nov 2017 17:27:26 +0000 (11:27 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 15 Nov 2017 17:54:37 +0000 (11:54 -0600)
Calling this multiple times even after it fails the first time is a legit
thing now.  We'll be doing that when we want to test dmabuf at connection
start.

src/lib/ecore_wl2/ecore_wl2_buffer.c

index 58e2d6a..60e4312 100644 (file)
@@ -433,6 +433,7 @@ err_bm:
    close(fd);
 err_drm:
    free(buffer_manager);
+   buffer_manager = NULL;
 err_alloc:
    return EINA_FALSE;
 }