--- rxvt-unicode/src/background.C 2010/08/21 09:25:31 1.40 +++ rxvt-unicode/src/background.C 2010/08/29 13:40:42 1.43 @@ -52,7 +52,7 @@ * adjustment and may optionally be followed by a colon and one or more * colon-delimited pixmap operations. * The following table shows the valid geometry strings and their - * affects on the background image : + * effects on the background image : * * WxH+X+Y Set scaling to W% by H%, and position to X% by Y%. * W and H are percentages of the terminal window size. @@ -556,7 +556,6 @@ { /* if blending background and image - pixmap has to be sized same as target window */ ASImageLayer *layers = create_image_layers (2); - ASImage *merged_im = NULL; layers[0].im = background; layers[0].clip_width = target_width; @@ -684,11 +683,10 @@ if (const char *p = strchr (file, ';')) { size_t len = p - file; - char *f = (char *)malloc (len + 1); + char *f = rxvt_temp_buf (len + 1); memcpy (f, file, len); f[len] = '\0'; original_asim = get_asimage (target->asimman, f, 0xFFFFFFFF, 100); - free (f); } else original_asim = get_asimage (target->asimman, file, 0xFFFFFFFF, 100);