From 6954f21fd48b99a57130e25183f46776e97dbc28 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 May 2015 17:52:27 +0200 Subject: remove unnecessary null-checks, it is safe to pass NULL to free (per documentation) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/location-geoclue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/location-geoclue.c') diff --git a/src/location-geoclue.c b/src/location-geoclue.c index b2616bf..851a75b 100644 --- a/src/location-geoclue.c +++ b/src/location-geoclue.c @@ -123,8 +123,8 @@ void location_geoclue_free(location_geoclue_state_t *state) { if (state->position != NULL) g_object_unref(state->position); - if (state->provider != NULL) free(state->provider); - if (state->provider_path != NULL) free(state->provider_path); + free(state->provider); + free(state->provider_path); } void -- cgit v1.2.3-70-g09d2