summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/win/debugviewinfo.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-07-24 22:55:00 -0400
committer Nathan Woods <npwoods@mess.org>2016-07-24 22:55:00 -0400
commitab73291e479be171d6f89798ed706b5ea58aa09f (patch)
tree456ca9bc290187a50909bdf33b610f09e55be70e /src/osd/modules/debugger/win/debugviewinfo.cpp
parent59dafc2261ff1bbe553d64b4aca7b9806b663490 (diff)
Changed strconv.[cpp|h] functions to return their results as std::string and std::wstring
Diffstat (limited to 'src/osd/modules/debugger/win/debugviewinfo.cpp')
-rw-r--r--src/osd/modules/debugger/win/debugviewinfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/win/debugviewinfo.cpp b/src/osd/modules/debugger/win/debugviewinfo.cpp
index c2d4bdb85ca..2104e09246e 100644
--- a/src/osd/modules/debugger/win/debugviewinfo.cpp
+++ b/src/osd/modules/debugger/win/debugviewinfo.cpp
@@ -268,9 +268,8 @@ HWND debugview_info::create_source_combobox(HWND parent, LONG_PTR userdata)
int const length = strlen(source->name());
if (length > maxlength)
maxlength = length;
- TCHAR *t_name = tstring_from_utf8(source->name());
- SendMessage(result, CB_ADDSTRING, 0, (LPARAM)t_name);
- osd_free(t_name);
+ auto t_name = tstring_from_utf8(source->name());
+ SendMessage(result, CB_ADDSTRING, 0, (LPARAM)t_name.c_str());
}
if (cursource != nullptr)
{