colorselector: memory leak fix in _color_bars_add
authorChunEon Park <hermet@hermet.pe.kr>
Wed, 7 Jan 2015 02:42:08 +0000 (11:42 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Wed, 7 Jan 2015 02:42:08 +0000 (11:42 +0900)
commitbbaf3c2cdf1aa00db49254d1da9a5ef06790f4be
tree5e025ae8911477f6f42152578cdbe1eda54376e5
parent2ffbc01b1df30e580f155c70a560c01db8ba187a
colorselector: memory leak fix  in _color_bars_add

Summary:
this function is called at least twice: in _smart_add and every time _theme_apply is called.
so we need either correctly free sd->cb_data or reuse it

@fix

Reviewers: seoz, cedric, raster, Hermet

Subscribers: reutskiy.v.v

Projects: #elementary

Differential Revision: https://phab.enlightenment.org/D1841
src/lib/elm_colorselector.c