Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-28 14:23:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-28 14:23:06 +0400
commit37760c0ad0a8f86362b3af9bacba620fd888df6c (patch)
treef2c7ef879fa1f6b02c28062d387d4b1619e9b3f6
parent08fbc48ee56f5ff9ff7ba32401f22420434d718d (diff)
fix for memory leaks in own recent changes.
-rw-r--r--source/blender/makesrna/intern/rna_access.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index caa53a23d77..641507a4136 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -4204,6 +4204,8 @@ char *RNA_path_full_struct_py(struct PointerRNA *ptr)
ret = BLI_sprintfN("%s.%s",
id_path, data_path);
+ MEM_freeN(data_path);
+
return ret;
}
@@ -4235,6 +4237,8 @@ char *RNA_path_full_property_py(PointerRNA *ptr, PropertyRNA *prop, int index)
ret = BLI_sprintfN("%s.%s[%d]",
id_path, data_path, index);
}
+ MEM_freeN(id_path);
+ MEM_freeN(data_path);
return ret;
}
@@ -4264,6 +4268,8 @@ char *RNA_path_struct_property_py(PointerRNA *ptr, PropertyRNA *prop, int index)
data_path, index);
}
+ MEM_freeN(data_path);
+
return ret;
}