提交 fd0872d6 编写于 作者: C Clayton Groeneveld

UI: Fix memory leak when dropping files

This fixes a memory leak when dropping files when the name
is the same as other sources.
上级 4aa6610b
......@@ -51,8 +51,11 @@ static string GenerateSourceName(const char *base)
}
obs_source_t *source = obs_get_source_by_name(name.c_str());
if (!source)
return name;
else
obs_source_release(source);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册