forked from enlightenment/efl
elementary: Fix resource leak
Coverity reports a resource leak here. According to eina_strbuf documentation, the result of eina_strbuf_release should be free'd when not needed anymore. Fixes Coverity CID1383550 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
1842945432
commit
13d29eda98
|
@ -1129,6 +1129,7 @@ EOLIAN static void
|
|||
_efl_ui_slider_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Slider_Data *priv)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||
char *group;
|
||||
|
||||
if (!elm_widget_theme_klass_get(obj))
|
||||
elm_widget_theme_klass_set(obj, "slider");
|
||||
|
@ -1143,12 +1144,16 @@ _efl_ui_slider_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Slider_Data *priv)
|
|||
priv->wheel_indicator_duration = 0.25;
|
||||
priv->step = SLIDER_STEP;
|
||||
|
||||
group = _efl_ui_slider_theme_group_get(obj, priv);
|
||||
|
||||
if (!elm_widget_theme_object_set(obj, wd->resize_obj,
|
||||
elm_widget_theme_klass_get(obj),
|
||||
_efl_ui_slider_theme_group_get(obj, priv),
|
||||
group,
|
||||
elm_widget_theme_style_get(obj)))
|
||||
CRI("Failed to set layout!");
|
||||
|
||||
free(group);
|
||||
|
||||
elm_layout_signal_callback_add(obj, "drag", "*", _drag, obj);
|
||||
elm_layout_signal_callback_add(obj, "drag,start", "*", _drag_start, obj);
|
||||
elm_layout_signal_callback_add(obj, "drag,stop", "*", _drag_stop, obj);
|
||||
|
|
Loading…
Reference in New Issue