Skip to content

Commit e83f25d

Browse files
committed
Fix crash caused by Metadata ref-counting
1 parent c6642fb commit e83f25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/debugserversetting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void DebugServerSettingsDialog::apply()
8989
{
9090
std::string host = m_addressEntry->text().toStdString();
9191
m_controller->SetRemoteHost(host);
92-
auto data = new Metadata(host);
92+
Ref<Metadata> data = new Metadata(host);
9393
m_controller->GetData()->StoreMetadata("debugger.remote_host", data);
9494

9595
std::string portString = m_portEntry->text().toStdString();

0 commit comments

Comments
 (0)