summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/debugimgui.cpp
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2020-10-09 00:05:01 -0700
committer Aaron Giles <aaron@aarongiles.com>2020-10-09 00:05:01 -0700
commit7b1df38bd0ff7b17eed3d1709b67bd7eda210efc (patch)
tree26cec39203907463da4f6873290cfafe74aa9f97 /src/osd/modules/debugger/debugimgui.cpp
parent1b399b9e9b891b1a53290cdfdaa76b796ce1fd82 (diff)
parentac04c377a995c1d87fc889ad98ff772838bcf31f (diff)
Merge branch 'master' into aaron-nl3
Diffstat (limited to 'src/osd/modules/debugger/debugimgui.cpp')
-rw-r--r--src/osd/modules/debugger/debugimgui.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp
index 296b148c5db..da3e58d4bcf 100644
--- a/src/osd/modules/debugger/debugimgui.cpp
+++ b/src/osd/modules/debugger/debugimgui.cpp
@@ -225,11 +225,7 @@ static void view_list_remove(debug_area* item)
static debug_area *dview_alloc(running_machine &machine, debug_view_type type)
{
- debug_area *dv;
-
- dv = global_alloc(debug_area(machine, type));
-
- return dv;
+ return new debug_area(machine, type);
}
static inline void map_attr_to_fg_bg(unsigned char attr, rgb_t *fg, rgb_t *bg)
@@ -1406,7 +1402,7 @@ void debug_imgui::update()
if(to_delete != nullptr)
{
view_list_remove(to_delete);
- global_free(to_delete);
+ delete to_delete;
}
ImGui::PopStyleColor(12);