Fix a crash that can occure when creating the thumbnail (no issue)

This commit is contained in:
Hombre
2018-11-03 13:59:04 +01:00
parent d75741a994
commit 7474598ebc

View File

@@ -2224,7 +2224,7 @@ bool Thumbnail::readAEHistogram (const Glib::ustring& fname)
FILE* f = g_fopen (fname.c_str (), "rb");
if (!f) {
aeHistogram (0);
aeHistogram.reset();
} else {
aeHistogram (65536 >> aeHistCompression);
fread (&aeHistogram[0], 1, (65536 >> aeHistCompression)*sizeof (aeHistogram[0]), f);