Re: [Mesa-dev] [PATCH] egl/dri2: do not leak dri2_dpy-driver_name

2014-06-02 Thread Chia-I Wu
On Sun, Jun 1, 2014 at 11:53 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Originally all hardware drivers duplicate the driver_name string from an external source, while for the software rasterizer we set it to swrast. Follow the example set by hw drivers this way we can free the string at

Re: [Mesa-dev] [PATCH] egl/dri2: do not leak dri2_dpy-driver_name

2014-06-02 Thread Emil Velikov
On 02/06/14 07:31, Chia-I Wu wrote: On Sun, Jun 1, 2014 at 11:53 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Originally all hardware drivers duplicate the driver_name string from an external source, while for the software rasterizer we set it to swrast. Follow the example set by hw

[Mesa-dev] [PATCH] egl/dri2: do not leak dri2_dpy-driver_name

2014-06-02 Thread Emil Velikov
Originally all hardware drivers duplicate the driver_name string from an external source, while for the software rasterizer we set it to swrast. Follow the example set by hw drivers this way we can free the string at dri2_terminate(). v2: Use strdup over strndup. Suggested by Ilia Mirkin. v3:

[Mesa-dev] [PATCH] egl/dri2: do not leak dri2_dpy-driver_name

2014-06-01 Thread Emil Velikov
Originally all hardware drivers duplicate the driver_name string from an external source, while for the software rasterizer we set it to swrast. Follow the example set by hw drivers this way we can free the string at dri2_terminate(). v2: Use strdup over strndup. Suggested by Ilia Mirkin. Cc: