From: chanywa Date: Fri, 21 Jul 2017 00:18:53 +0000 (+0900) Subject: Change g_free() to free() in API for restcurl X-Git-Tag: accepted/tizen/unified/20170721.202022^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04ec47cfc8c29941a9049408089668c0fad80793;p=platform%2Fcore%2Flocation%2Fmaps-plugin-mapzen.git Change g_free() to free() in API for restcurl Change-Id: I98bd5b2370ce8cafa7b2be4da3b620787744177f --- 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; }