image->bitmap_bit_order = LSBFirst;
gc = XCreateGC(xfc->display, xfc->drawable, 0, NULL);
XPutImage(xfc->display, bitmap, gc, image, 0, 0, 0, 0, width, height);
- XFree(image);
+ XDestroyImage(image);
if (cdata != data)
_aligned_free(cdata);
image->byte_order = LSBFirst;
image->bitmap_bit_order = LSBFirst;
XPutImage(xfc->display, bitmap, xfc->gc_mono, image, 0, 0, 0, 0, width, height);
- XFree(image);
+ XDestroyImage(image);
return bitmap;
}
image->bitmap_bit_order = LSBFirst;
XPutImage(xfc->display, xfc->primary, xfc->gc, image, 0, 0, left, top, width, height);
- XFree(image);
+ XDestroyImage(image);
ret = xf_gdi_surface_update_frame(xfc, left, top, width, height);
}
return CHANNEL_RC_OK;
error_set_surface_data:
- XFree(surface->image);
+ XDestroyImage(surface->image);
error_surface_image:
_aligned_free(surface->stage);
out_free_gdidata:
#ifdef WITH_GFX_H264
h264_context_free(surface->gdi.h264);
#endif
- XFree(surface->image);
+ XDestroyImage(surface->image);
_aligned_free(surface->gdi.data);
_aligned_free(surface->stage);
region16_uninit(&surface->gdi.invalidRegion);
XFreePixmap(xfc->display, xbitmap->pixmap);
if (xbitmap->image)
- XFree(xbitmap->image);
+ XDestroyImage(xbitmap->image);
xf_unlock_x11(xfc, FALSE);
}
XInitImage(image);
XPutImage(xfc->display, xf_glyph->pixmap, xfc->gc_mono, image, 0, 0, 0, 0,
glyph->cx, glyph->cy);
- XFree(image);
+ XDestroyImage(image);
xf_unlock_x11(xfc, FALSE);
return TRUE;
}