aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-11-20 09:16:55 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-11-20 09:16:55 +0900
commitb2611690bd2a1d3fdfc109c14ba3ca46fa71db6e (patch)
treee5aa9076d8f48385cd51f62ca704c0b431c3c32f
parentgenlist: Fix build warning for uninitialized variable. (diff)
downloadelementary-devs/bluezery/genlist.tar.gz
transit: free the map resource.devs/bluezery/genlist
@fix Submitted-By-Off: Seung-Wan Woo <s-w.woo@samsung.com>
-rw-r--r--src/lib/elm_transit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_transit.c b/src/lib/elm_transit.c
index 2e341c392..daa7f35d0 100644
--- a/src/lib/elm_transit.c
+++ b/src/lib/elm_transit.c
@@ -118,8 +118,9 @@ _transit_obj_data_update(Elm_Transit *transit, Evas_Object *obj)
obj_data->freeze_events = evas_object_freeze_events_get(obj);
- if (!transit->state_keep)
+ if (!transit->state_keep && obj_data->state)
{
+ if (obj_data->state->map) evas_map_free(obj_data->state->map);
ELM_SAFE_FREE(obj_data->state, free);
}
else