[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-2-gf39927f7c
mones at claws-mail.org
mones at claws-mail.org
Sat Dec 2 20:12:50 UTC 2023
The branch, gtk2 has been updated
via f39927f7c91400018e95b19c1731756b7753d1d6 (commit)
from e4e018987a64667f5e6a891562143540a104bd79 (commit)
Summary of changes:
src/plugins/litehtml_viewer/container_linux_images.cpp | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
- Log -----------------------------------------------------------------
commit f39927f7c91400018e95b19c1731756b7753d1d6
Author: Ricardo Mones <ricardo at mones.org>
Date: Sat Dec 2 21:11:51 2023 +0100
Distinguish messages and remove unnecessary goto
diff --git a/src/plugins/litehtml_viewer/container_linux_images.cpp b/src/plugins/litehtml_viewer/container_linux_images.cpp
index 2897b2d0f..7a9b50cce 100644
--- a/src/plugins/litehtml_viewer/container_linux_images.cpp
+++ b/src/plugins/litehtml_viewer/container_linux_images.cpp
@@ -34,23 +34,21 @@ static GdkPixbuf *lh_get_image(const char *url)
GInputStream *image = http_loader->load_url(url, &error);
if (error || !image) {
+ if (error) {
+ g_warning("lh_get_image: Could not load URL for '%s': %s",
+ url, error->message);
+ g_clear_error(&error);
+ }
+ } else {
+ pixbuf = gdk_pixbuf_new_from_stream(image, NULL, &error);
if (error) {
g_warning("lh_get_image: Could not create pixbuf for '%s': %s",
url, error->message);
+ pixbuf = NULL;
g_clear_error(&error);
}
- goto theend;
- }
-
- pixbuf = gdk_pixbuf_new_from_stream(image, NULL, &error);
- if (error) {
- g_warning("lh_get_image: Could not create pixbuf for '%s': %s",
- url, error->message);
- pixbuf = NULL;
- g_clear_error(&error);
}
-theend:
delete http_loader;
return pixbuf;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list