Skip to content

GWeatherLocation: Don't return a copy of the name

Adrien Plazas requested to merge (removed):location-name-leak into master

The documentation of gweather_location_get_name(), its const return type, coding conventions and its usage in the library itself all indicate it shouldn't return a newly allocated string, and is hence leaking memory.

Fixes #22 (closed)

Edited by Adrien Plazas

Merge request reports