From 873839ea8a7b655075c17502f81df2ff969e5192 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Sep 2019 18:31:32 +0000 Subject: silly glib --- src/rxvtimg.C | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rxvtimg.C b/src/rxvtimg.C index 174861b..12105e3 100644 --- a/src/rxvtimg.C +++ b/src/rxvtimg.C @@ -404,7 +404,15 @@ rxvt_img::new_from_file (rxvt_screen *s, const char *filename) GdkPixbuf *pb = gdk_pixbuf_new_from_file (filename, &err); if (!pb) - rxvt_fatal ("rxvt_img::new_from_file: %s\n", err->message); + try + { + rxvt_fatal ("rxvt_img::new_from_file: %s\n", err->message); + } + catch (...) + { + g_error_free (err); + throw; + } rxvt_img *img = new_from_pixbuf (s, pb); -- cgit v1.2.3