diff options
author | root <root> | 2019-09-17 18:31:32 +0000 |
---|---|---|
committer | root <root> | 2019-09-17 18:31:32 +0000 |
commit | 873839ea8a7b655075c17502f81df2ff969e5192 (patch) | |
tree | 5167c0aae98538c2248152be3db16b40bcfdc626 /src | |
parent | 3d8af55b53c8a90ea9682be0d3eb98e63325ffa8 (diff) |
silly glib
Diffstat (limited to 'src')
-rw-r--r-- | src/rxvtimg.C | 10 |
1 files changed, 9 insertions, 1 deletions
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); |