commit | a1ac742f709089eabad59b4da484799091203d91 | [log] [tgz] |
---|---|---|
author | Emil Velikov <emil.l.velikov@gmail.com> | Thu Sep 10 14:41:38 2015 +0100 |
committer | Emil Velikov <emil.l.velikov@gmail.com> | Tue Sep 15 12:39:02 2015 +0100 |
tree | 5206e1169c688908cf2ec7f2629277d98fd7b6f8 | |
parent | bd5bcb5b8ca043a3908d7a70ab1193efc1db278d [diff] |
egl/dri2: don't leak the fd on dri2_terminate Currently the check was incorrect as it did not consider the (unlikely) case of fd == 0. In order to fix this we should first correctly initialize it to -1, as the swrast implementations leave it set to zero (props to calloc()). Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Boyan Ding <boyan.j.ding@gmail.com>