exa: don't need to check for NULL pointer if we already assumed it has a value
the alternative would be to check ps in the beginning of the function. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Acked-by: Michel Dänzer <michel@daenzer.net>
This commit is contained in:
parent
96784f4fcb
commit
471f350c99
14
exa/exa.c
14
exa/exa.c
|
@ -779,14 +779,12 @@ exaCloseScreen(int i, ScreenPtr pScreen)
|
|||
unwrap(pExaScr, pScreen, BitmapToRegion);
|
||||
unwrap(pExaScr, pScreen, CreateScreenResources);
|
||||
#ifdef RENDER
|
||||
if (ps) {
|
||||
unwrap(pExaScr, ps, Composite);
|
||||
if (pExaScr->SavedGlyphs)
|
||||
unwrap(pExaScr, ps, Glyphs);
|
||||
unwrap(pExaScr, ps, Trapezoids);
|
||||
unwrap(pExaScr, ps, Triangles);
|
||||
unwrap(pExaScr, ps, AddTraps);
|
||||
}
|
||||
unwrap(pExaScr, ps, Composite);
|
||||
if (pExaScr->SavedGlyphs)
|
||||
unwrap(pExaScr, ps, Glyphs);
|
||||
unwrap(pExaScr, ps, Trapezoids);
|
||||
unwrap(pExaScr, ps, Triangles);
|
||||
unwrap(pExaScr, ps, AddTraps);
|
||||
#endif
|
||||
|
||||
xfree (pExaScr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user