Commit 489188a2 authored by thrust26's avatar thrust26
Browse files

fixed memory leak in EventMappingWidget

parent 6187d3b5
Pipeline #10440 passed with stages
in 1 minute and 59 seconds
......@@ -128,7 +128,7 @@ EventMappingWidget::EventMappingWidget(GuiObject* boss, const GUI::Font& font,
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
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment