termio: fix getting selection of known link. CID1367486

This commit is contained in:
Boris Faure 2016-12-20 20:20:34 +01:00
parent 240a4a02d3
commit e5f3676e32
1 changed files with 2 additions and 1 deletions

View File

@ -2351,7 +2351,7 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type)
len = strlen(sd->link.string);
s = strndup(sd->link.string, len);
}
return EINA_FALSE;
goto end;
}
if (sd->pty->selection.is_box)
@ -2384,6 +2384,7 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type)
EINA_TRUE);
}
end:
if (s)
{
if ((sd->win) && (len > 0))