Fix #118501: crash opening some projects if Load UI is off

Wrong check for vecscope_rgb array free, introduced in 567455124d
This commit is contained in:
Aras Pranckevicius
2024-02-23 07:27:33 +02:00
parent ced066e0c8
commit 3e232aaac1

View File

@@ -1713,6 +1713,8 @@ void BKE_scopes_update(Scopes *scopes,
}
if (scopes->vecscope) {
MEM_freeN(scopes->vecscope);
}
if (scopes->vecscope_rgb) {
MEM_freeN(scopes->vecscope_rgb);
}