Fix a memory leak when obtaining the selection from the web view
This commit is contained in:
parent
45b4747868
commit
d1967241fd
1 changed files with 2 additions and 2 deletions
|
@ -1757,8 +1757,8 @@ midori_view_has_selection (MidoriView* view)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
|
g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
|
||||||
|
|
||||||
view->selected_text = webkit_web_view_get_selected_text (
|
katze_assign (view->selected_text, webkit_web_view_get_selected_text (
|
||||||
WEBKIT_WEB_VIEW (view->web_view));
|
WEBKIT_WEB_VIEW (view->web_view)));
|
||||||
if (view->selected_text && *view->selected_text)
|
if (view->selected_text && *view->selected_text)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue