Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
489188a2
Commit
489188a2
authored
Jan 13, 2021
by
thrust26
Browse files
fixed memory leak in EventMappingWidget
parent
6187d3b5
Pipeline
#10440
passed with stages
in 1 minute and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/gui/EventMappingWidget.cxx
View file @
489188a2
...
...
@@ -128,7 +128,7 @@ EventMappingWidget::EventMappingWidget(GuiObject* boss, const GUI::Font& font,
addFocusWidget
(
myComboButton
);
VariantList
combolist
=
instance
().
eventHandler
().
getComboList
(
mode
);
myComboDialog
=
new
ComboDialog
(
boss
,
font
,
combolist
);
myComboDialog
=
make_unique
<
ComboDialog
>
(
boss
,
font
,
combolist
);
}
// Show message for currently selected event
...
...
src/gui/EventMappingWidget.hxx
View file @
489188a2
...
...
@@ -90,7 +90,7 @@ class EventMappingWidget : public Widget, public CommandSender
StringListWidget
*
myActionsList
{
nullptr
};
EditTextWidget
*
myKeyMapping
{
nullptr
};
ComboDialog
*
myComboDialog
{
nullptr
}
;
unique_ptr
<
ComboDialog
>
myComboDialog
;
// Since this widget can be used for different collections of events,
// we need to specify exactly which group of events we are remapping
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment