UI: Fix memory leak when drag/dropping
This commit is contained in:
parent
ce89ae1057
commit
0accb9f865
@ -107,8 +107,10 @@ void OBSBasic::AddDropSource(const char *data, DropType image)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!obs_source_get_display_name(type))
|
||||
if (!obs_source_get_display_name(type)) {
|
||||
obs_data_release(settings);
|
||||
return;
|
||||
}
|
||||
|
||||
if (name.isEmpty())
|
||||
name = obs_source_get_display_name(type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user