diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2010-08-23 22:40:58 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-08-26 00:28:01 +0200 |
commit | a49167c1c03dab9452165f503251e543dec2be9a (patch) | |
tree | c270d7b5feaed68631095b5659f988cb372cacae /src/gallium/drivers/nouveau | |
parent | bd25e23bf3740f59ce8859848c715daeb9e9821f (diff) | |
download | external_mesa3d-a49167c1c03dab9452165f503251e543dec2be9a.zip external_mesa3d-a49167c1c03dab9452165f503251e543dec2be9a.tar.gz external_mesa3d-a49167c1c03dab9452165f503251e543dec2be9a.tar.bz2 |
nouveau: handle early initialization errors
handle very early errors in pipe_screen creation (failure of
nouveau_screen_init in nv50_screen_create)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index 513e5e0..ebb21a6 100644 --- a/src/gallium/drivers/nouveau/nouveau_screen.c +++ b/src/gallium/drivers/nouveau/nouveau_screen.c @@ -258,6 +258,7 @@ nouveau_screen_fini(struct nouveau_screen *screen) { struct pipe_winsys *ws = screen->base.winsys; nouveau_channel_free(&screen->channel); - ws->destroy(ws); + if (ws) + ws->destroy(ws); } |