diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index 4269e674f84..27987bbc9c9 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -917,15 +917,8 @@ void mame_ui_manager::decrease_frameskip() bool mame_ui_manager::can_paste() { - // retrieve the clipboard text - char *text = osd_get_clipboard_text(); - - // free the string if allocated - if (text != nullptr) - free(text); - - // did we have text? - return text != nullptr; + // check to see if the clipboard is not empty + return !osd_get_clipboard_text().empty(); } |