and null the clip pointer because this module is way too smart to crash

This commit is contained in:
Mike Blumenkrantz 2015-02-11 23:15:43 -05:00
parent aec23ab918
commit b2bd0365cd
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ _pip_mouse_up(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, voi
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
if ((abs((x + pip->down.x) - ev->output.x) < 3) &&
(abs((y + pip->down.y) - ev->output.y) < 3))
evas_object_del(pip->clip);
E_FREE_FUNC(pip->clip, evas_object_del);
else
{
evas_object_color_set(pip->clip, 255, 255, 255, 255);