eclipseo / rpms / blender

Forked from rpms/blender a month ago
Clone
Blob Blame History Raw
diff -Naur blender-2.68a-original/source/blender/makesdna/intern/dna_genfile.c blender-2.68a/source/blender/makesdna/intern/dna_genfile.c
--- blender-2.68a-original/source/blender/makesdna/intern/dna_genfile.c	2013-03-17 10:38:58.000000000 -0400
+++ blender-2.68a/source/blender/makesdna/intern/dna_genfile.c	2022-04-04 14:27:54.716949756 -0400
@@ -210,7 +210,9 @@
 	MEM_freeN(sdna->structs);
 
 #ifdef WITH_DNA_GHASH
-	BLI_ghash_free(sdna->structs_map, NULL, NULL);
+	if (sdna->structs_map) {
+		BLI_ghash_free(sdna->structs_map, NULL, NULL);
+	}
 #endif
 
 	MEM_freeN(sdna);