Only copy icon_uri when needed in _midori_web_view_load_icon

This commit is contained in:
Christian Dywan 2011-12-13 23:28:35 +01:00
parent 0cde623901
commit c522706d63

View file

@ -854,17 +854,16 @@ static void
_midori_web_view_load_icon (MidoriView* view)
{
GdkPixbuf* pixbuf;
gchar* icon_uri;
gchar* icon_file;
gint icon_width, icon_height;
GdkPixbuf* pixbuf_scaled;
GtkSettings* settings;
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)
{
guint i = 8;