Merge pull request #7053 from sgotti/dcp_avoid_file_descriptor_leak_on_error
dcp: avoid file descriptor leak on error.
This commit is contained in:
commit
543a3604c2
@ -1134,6 +1134,7 @@ DCPProfile::DCPProfile(const Glib::ustring& filename) :
|
|||||||
DCPMetadata md(file);
|
DCPMetadata md(file);
|
||||||
if (!md.parse()) {
|
if (!md.parse()) {
|
||||||
printf ("Unable to load DCP profile '%s'.", filename.c_str());
|
printf ("Unable to load DCP profile '%s'.", filename.c_str());
|
||||||
|
fclose(file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user