Emil Velikov <[email protected]> writes: > The sw pipe-loader implicitly handles winsys_create, thus we > it would make sense to implicitly destroy it upon releasing > the loader. > > Currently we leak the sw_winsys when releasing the pipe-loader. > > Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]> > --- > src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c > b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c > index 95a4f84..fd3d989 100644 > --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c > +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c > @@ -75,6 +75,9 @@ pipe_loader_sw_release(struct pipe_loader_device **dev) > { > struct pipe_loader_sw_device *sdev = pipe_loader_sw_device(*dev); > > + if (sdev->ws && sdev->ws->destroy) > + sdev->ws->destroy(sdev->ws); > + > if (sdev->lib) > util_dl_close(sdev->lib); > > -- > 1.8.5.4 > > _______________________________________________ > mesa-dev mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
pgpUT4isPHYz_.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
