src/video/SDL_clipboard.c
changeset 7719 31b5f9ff36ca
parent 6885 700f1b25f77f
child 7721 bdf8c2c84e14
     1.1 --- a/src/video/SDL_clipboard.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/video/SDL_clipboard.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -35,9 +35,7 @@
     1.4      if (_this->SetClipboardText) {
     1.5          return _this->SetClipboardText(_this, text);
     1.6      } else {
     1.7 -        if (_this->clipboard_text) {
     1.8 -            SDL_free(_this->clipboard_text);
     1.9 -        }
    1.10 +        SDL_free(_this->clipboard_text);
    1.11          _this->clipboard_text = SDL_strdup(text);
    1.12          return 0;
    1.13      }