From 04ec47cfc8c29941a9049408089668c0fad80793 Mon Sep 17 00:00:00 2001 From: chanywa Date: Fri, 21 Jul 2017 09:18:53 +0900 Subject: [PATCH] Change g_free() to free() in API for restcurl Change-Id: I98bd5b2370ce8cafa7b2be4da3b620787744177f --- src/mapzen/mapzen_api.cpp | 2 +- src/mapzen/mapzen_restcurl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapzen/mapzen_api.cpp b/src/mapzen/mapzen_api.cpp index 4096d74..63d8097 100644 --- a/src/mapzen/mapzen_api.cpp +++ b/src/mapzen/mapzen_api.cpp @@ -97,7 +97,7 @@ int mapzen_start_route(mapzen_route_req_s *req_details, mapzen_route_cb callback int mapzen_create_map_view(maps_view_h hView, maps_plugin_map_view_ready_cb pCbFunc, const char* providerKey) { - TangramView* tv = new TangramView(); + TangramView* tv = new (std::nothrow) TangramView(); if (!tv) { return MAPZEN_ERROR_OUT_OF_MEMORY; } diff --git a/src/mapzen/mapzen_restcurl.c b/src/mapzen/mapzen_restcurl.c index 9fa7e6a..913a717 100644 --- a/src/mapzen/mapzen_restcurl.c +++ b/src/mapzen/mapzen_restcurl.c @@ -618,7 +618,7 @@ int deinit_curl() #endif if (__proxy_address) { - g_free(__proxy_address); + free(__proxy_address); __proxy_address = NULL; } -- 2.7.4