fix potential undefined behaviour

fix #19
This commit is contained in:
Evgeniy A. Dushistov
2017-07-04 22:30:26 +03:00
parent b4fc882f25
commit b2ced870ab
3 changed files with 9 additions and 17 deletions

View File

@@ -89,7 +89,6 @@ bool DictInfo::load_from_ifo_file(const std::string& ifofilename,
if (!g_str_has_prefix(
g_str_has_prefix(get_impl(buffer), (const gchar *)(utf8_bom)) ? get_impl(buffer) + 3 : get_impl(buffer),
magic_data)) {
g_free(buffer);
return false;
}