Free script code in thumb_view_load_status_cb with g_free
Allocating and releasing must match.
This commit is contained in:
parent
8302cfe004
commit
54d037f689
1 changed files with 1 additions and 1 deletions
|
@ -5219,7 +5219,7 @@ thumb_view_load_status_cb (MidoriView* thumb_view,
|
||||||
js = g_strdup_printf ("setThumbnail('%s','%s','%s');",
|
js = g_strdup_printf ("setThumbnail('%s','%s','%s');",
|
||||||
dom_id, encoded, thumb_view->uri);
|
dom_id, encoded, thumb_view->uri);
|
||||||
webkit_web_view_execute_script (WEBKIT_WEB_VIEW (view->web_view), js);
|
webkit_web_view_execute_script (WEBKIT_WEB_VIEW (view->web_view), js);
|
||||||
free (js);
|
g_free (js);
|
||||||
g_object_unref (img);
|
g_object_unref (img);
|
||||||
|
|
||||||
g_free (dom_id);
|
g_free (dom_id);
|
||||||
|
|
Loading…
Reference in a new issue