summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-01-16 03:37:32 +0000
committerChunEon Park <hermet@hermet.pe.kr>2013-01-16 03:37:32 +0000
commit540601e45ce904d56ab38f40a8a2b8acf6b9c8a0 (patch)
tree2b205a0f1211c644fbf71edc661ed4eb560ef8bb
parentb68316bd8d1f137334d4dfb305074f977c6b7fea (diff)
elementary/map - allocate memory only when it needs
SVN revision: 82850
-rw-r--r--src/lib/elm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c
index 493d5801d..4d6558487 100644
--- a/src/lib/elm_map.c
+++ b/src/lib/elm_map.c
@@ -2763,10 +2763,10 @@ _xml_name_dump_list_cb(void *data,
2763 Elm_Map_Name *name; 2763 Elm_Map_Name *name;
2764 Name_Dump dump = {0, NULL, 0.0, 0.0}; 2764 Name_Dump dump = {0, NULL, 0.0, 0.0};
2765 _xml_name_dump_cb(&dump, type, value, offset, length); 2765 _xml_name_dump_cb(&dump, type, value, offset, length);
2766 name = calloc(1, sizeof(Elm_Map_Name));
2767 if (!name) return EINA_FALSE;
2768 if (dump.address) 2766 if (dump.address)
2769 { 2767 {
2768 name = calloc(1, sizeof(Elm_Map_Name));
2769 if (!name) return EINA_FALSE;
2770 name->address = strdup(dump.address); 2770 name->address = strdup(dump.address);
2771 name->lon = dump.lon; 2771 name->lon = dump.lon;
2772 name->lat = dump.lat; 2772 name->lat = dump.lat;