Merge pull request #1287 from Andersama/patch-13

UI: Fix memory leak when drag/dropping
master
palana 2018-05-09 21:50:59 +02:00 committed by GitHub
commit b41ca1ca14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);