Prevents a memory leak. --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c index c2b78c6..382e116 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c @@ -95,8 +95,11 @@ pipe_loader_sw_create_screen(struct pipe_loader_device *dev, return NULL; init = (void *)util_dl_get_proc_address(sdev->lib, "swrast_create_screen"); - if (!init) + if (!init){ + util_dl_close(sdev->lib); + sdev->lib = NULL; return NULL; + } return init(sdev->ws); } -- 1.8.3.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev