pipe-loader: Don't destroy the winsys in the sw loader
authorTom Stellard <thomas.stellard@amd.com>
Fri, 9 May 2014 01:05:02 +0000 (21:05 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 9 May 2014 08:32:54 +0000 (04:32 -0400)
commitc650033b863c3ac8388ff1b192b476f63cf81202
tree23fd7ec68e64d944b0d22945c549cebc823bc308
parent23e9f06569f58062820ab058d8057e9325042105
pipe-loader: Don't destroy the winsys in the sw loader

The screen takes ownership of the winsys, and is responsible for
destroying it.  Users of pipe-loader should make sure they destory
and  screens they've created to avoid memory leaks.

This fixes a crash in clover introduced by
ce6c17c0833032e91a2d1b34f9eb80c738a854a2 where the pipe-loader was
destroying the winsys while a screen was still using it.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c