Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
parent
edc88be724
commit
08dfaaa2e6
63 changed files with 157 additions and 349 deletions
|
@ -35,9 +35,7 @@ SDL_SetClipboardText(const char *text)
|
|||
if (_this->SetClipboardText) {
|
||||
return _this->SetClipboardText(_this, text);
|
||||
} else {
|
||||
if (_this->clipboard_text) {
|
||||
SDL_free(_this->clipboard_text);
|
||||
}
|
||||
SDL_free(_this->clipboard_text);
|
||||
_this->clipboard_text = SDL_strdup(text);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue