Use free() instead of g_free() 76/134576/1 accepted/tizen/unified/20170620.174110 submit/tizen/20170619.084208
authorchanywa <cbible.kim@samsung.com>
Mon, 19 Jun 2017 08:38:27 +0000 (17:38 +0900)
committerchanywa <cbible.kim@samsung.com>
Mon, 19 Jun 2017 08:38:27 +0000 (17:38 +0900)
Change-Id: I7c18e7702edcddd486748aabdaacbdf5b3283f8c

src/mapzen/tangram_view.cpp

index a23b1c1..e7e5e90 100644 (file)
@@ -107,7 +107,8 @@ mapzen_error_e TangramView::create(maps_view_h view, maps_plugin_map_view_ready_
        char* proxyAddress = NULL;
        get_proxy_address(&proxyAddress);
        urlOptions.proxyAddress = proxyAddress;
-       g_free(proxyAddress);
+       if (proxyAddress)
+               free(proxyAddress);
 
        auto platform = std::shared_ptr<Tangram::TizenPlatform>(new Tangram::TizenPlatform(urlOptions));
        //auto platform = std::make_shared<Tangram::TizenPlatform>();