Only copy icon_uri when needed in _midori_web_view_load_icon
This commit is contained in:
parent
0cde623901
commit
c522706d63
1 changed files with 2 additions and 3 deletions
|
@ -854,17 +854,16 @@ static void
|
||||||
_midori_web_view_load_icon (MidoriView* view)
|
_midori_web_view_load_icon (MidoriView* view)
|
||||||
{
|
{
|
||||||
GdkPixbuf* pixbuf;
|
GdkPixbuf* pixbuf;
|
||||||
gchar* icon_uri;
|
|
||||||
gchar* icon_file;
|
gchar* icon_file;
|
||||||
gint icon_width, icon_height;
|
gint icon_width, icon_height;
|
||||||
GdkPixbuf* pixbuf_scaled;
|
GdkPixbuf* pixbuf_scaled;
|
||||||
GtkSettings* settings;
|
GtkSettings* settings;
|
||||||
|
|
||||||
pixbuf = NULL;
|
pixbuf = NULL;
|
||||||
icon_uri = g_strdup (view->icon_uri);
|
|
||||||
|
|
||||||
if (midori_uri_is_http (icon_uri) || midori_uri_is_http (view->uri))
|
if (midori_uri_is_http (view->icon_uri) || midori_uri_is_http (view->uri))
|
||||||
{
|
{
|
||||||
|
gchar* icon_uri = g_strdup (view->icon_uri);
|
||||||
if (!icon_uri)
|
if (!icon_uri)
|
||||||
{
|
{
|
||||||
guint i = 8;
|
guint i = 8;
|
||||||
|
|
Loading…
Reference in a new issue