projects
/
platform
/
core
/
location
/
maps-plugin-mapzen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
apply new tangram
[platform/core/location/maps-plugin-mapzen.git]
/
src
/
mapzen
/
mapzen_jsonparser.cpp
diff --git
a/src/mapzen/mapzen_jsonparser.cpp
b/src/mapzen/mapzen_jsonparser.cpp
index
f54305e
..
7cc3257
100644
(file)
--- a/
src/mapzen/mapzen_jsonparser.cpp
+++ b/
src/mapzen/mapzen_jsonparser.cpp
@@
-666,8
+666,7
@@
static void __parse_route_response(char *response, int size, int *status, mapzen
rapidjson::Value::ConstMemberIterator maneuvers = leg->FindMember("maneuvers");
if (maneuvers == leg->MemberEnd() || !maneuvers->value.IsArray()) {
- if (segment_resp)
- g_free(segment_resp);
+ g_free(segment_resp);
return;
}