Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x)
This commit is contained in:
parent
08dfaaa2e6
commit
62d7359fd5
9 changed files with 51 additions and 123 deletions
|
@ -237,8 +237,7 @@ DirectFB_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
|
|||
}
|
||||
return;
|
||||
error:
|
||||
if (surface)
|
||||
SDL_FreeSurface(surface);
|
||||
SDL_FreeSurface(surface);
|
||||
SDL_DFB_RELEASE(windata->icon);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue