node uninitialized memory valgrind found while looking into crash.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jan 2010 08:39:32 +0000 (08:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jan 2010 08:39:32 +0000 (08:39 +0000)
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/rna_nodetree.c

index b42252f..eb524a6 100644 (file)
@@ -99,6 +99,7 @@ TARGET_LINK_LIBRARIES(makesrna bf_dna)
 # Output rna_*_gen.c
 ADD_CUSTOM_COMMAND(
        OUTPUT ${GENSRC}
+       # with crashes try add this after COMMEND: valgrind --leak-check=full --track-origins=yes 
        COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesrna ${CMAKE_CURRENT_BINARY_DIR}/
        DEPENDS makesrna
 )
index d7c7241..4ad3984 100644 (file)
@@ -577,6 +577,7 @@ static EnumPropertyItem* alloc_node_type_items(int category)
        
        item->value = NODE_DYNAMIC;
        item->identifier = "SCRIPT";
+       item->icon = 0;
        item->name = "Script";
        item->description = "";
        
@@ -584,6 +585,7 @@ static EnumPropertyItem* alloc_node_type_items(int category)
        
        item->value = NODE_GROUP;
        item->identifier = "GROUP";
+       item->icon = 0;
        item->name = "Group";
        item->description = "";