--- rxvt-unicode/src/background.C 2012/05/25 08:27:47 1.220 +++ rxvt-unicode/src/background.C 2012/05/25 09:27:35 1.221 @@ -60,6 +60,11 @@ void rxvt_term::bg_destroy () { +# ifdef BG_IMAGE_FROM_FILE + for (vector::iterator bg_image = image_vec.begin (); bg_image < image_vec.end (); bg_image++) + bg_image->destroy (); +# endif + if (bg_pixmap) XFreePixmap (dpy, bg_pixmap); } @@ -696,7 +701,7 @@ v_align = 0; # ifdef HAVE_PIXBUF - pixbuf.reset (0); + pixbuf = 0; # endif } @@ -735,7 +740,7 @@ { if (pixbuf) g_object_unref (pixbuf); - pixbuf.reset (image); + pixbuf = image; ret = true; } # endif