mistake in comparing pointers. (causing memfree prints)
authorCampbell Barton <ideasman42@gmail.com>
Sun, 30 Nov 2008 02:30:34 +0000 (02:30 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 30 Nov 2008 02:30:34 +0000 (02:30 +0000)
source/blender/makesrna/intern/rna_access.c
source/blender/python/intern/bpy_rna.c

index 5c1236e5fab6b5603158fc837cd87ab43baccd49..9f07d2a33113c7a598bc35e373d8d5c5b821c5ec 100644 (file)
@@ -996,7 +996,7 @@ int RNA_property_collection_lookup_string(PointerRNA *ptr, PropertyRNA *prop, co
                                        found= 1;
                                }
 
-                               if(nameptr != name);
+                               if ((char *)&name != nameptr)
                                        MEM_freeN(nameptr);
 
                                if(found)
index dfecf6fb010f1f384c84afbe1e94d00190737040..991f6b9d04cccd678328d2294a1580d9a3776f63 100644 (file)
@@ -523,7 +523,7 @@ PyObject *pyrna_prop_keys(BPy_PropertyRNA *self)
                                Py_DECREF(item);
                                /* done */
                                
-                               if (name != nameptr)
+                               if ((char *)&name != nameptr)
                                        MEM_freeN(nameptr);
                        }
                }
@@ -559,7 +559,7 @@ PyObject *pyrna_prop_items(BPy_PropertyRNA *self)
                                Py_DECREF(item);
                                /* done */
                                
-                               if (name != nameptr)
+                               if ((char *)&name != nameptr)
                                        MEM_freeN(nameptr);
                        }
                }