Commit a8096040 authored by Paolo Bacchilega's avatar Paolo Bacchilega

always use _gdk_pixbuf_scale_simple_safe instead of gdk_pixbuf_scale_simple

parent 6c644dda
......@@ -1391,7 +1391,7 @@ exiv2_generate_thumbnail (const char *uri,
TRUE))
{
GdkPixbuf *tmp = pixbuf;
pixbuf = gdk_pixbuf_scale_simple (tmp, pixbuf_width, pixbuf_height, GDK_INTERP_BILINEAR);
pixbuf = _gdk_pixbuf_scale_simple_safe (tmp, pixbuf_width, pixbuf_height, GDK_INTERP_BILINEAR);
g_object_unref (tmp);
}
......
......@@ -463,7 +463,7 @@ cache_image_ready_cb (GObject *source_object,
self->priv->cache_max_size);
if (modified) {
GdkPixbuf *tmp = pixbuf;
pixbuf = gdk_pixbuf_scale_simple (tmp, width, height, GDK_INTERP_BILINEAR);
pixbuf = _gdk_pixbuf_scale_simple_safe (tmp, width, height, GDK_INTERP_BILINEAR);
g_object_unref (tmp);
}
......@@ -575,7 +575,7 @@ original_image_loaded_correctly (GthThumbLoader *self,
self->priv->cache_max_size);
if (modified) {
GdkPixbuf *tmp = local_pixbuf;
local_pixbuf = gdk_pixbuf_scale_simple (tmp, width, height, GDK_INTERP_BILINEAR);
local_pixbuf = _gdk_pixbuf_scale_simple_safe (tmp, width, height, GDK_INTERP_BILINEAR);
g_object_unref (tmp);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment