From 0afa4372e2cce0f757b31d0b4a2ee626d9517055 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Tue, 25 Jun 2013 21:31:11 -0500 Subject: Add in extra check before dereference --- libmateweather/location-entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmateweather/location-entry.c b/libmateweather/location-entry.c index f6ce624..5da2fcd 100644 --- a/libmateweather/location-entry.c +++ b/libmateweather/location-entry.c @@ -466,6 +466,7 @@ mateweather_location_entry_build_model (MateWeatherLocationEntry *entry, { GtkTreeStore *store = NULL; + g_return_if_fail (MATEWEATHER_IS_LOCATION_ENTRY (entry)); entry->top = mateweather_location_ref (top); store = gtk_tree_store_new (4, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_STRING); -- cgit v1.2.1