settings->DesktopHeight, xfc->depth);
xfc->drawing = xfc->primary;
-
if (!xfc->bitmap_mono)
xfc->bitmap_mono = XCreatePixmap(xfc->display, xfc->drawable, 8, 8, 1);
if (!xfc->gc_mono)
xfc->gc_mono = XCreateGC(xfc->display, xfc->bitmap_mono, GCGraphicsExposures,
&gcv);
-
XSetFunction(xfc->display, xfc->gc, GXcopy);
XSetFillStyle(xfc->display, xfc->gc, FillSolid);
XSetForeground(xfc->display, xfc->gc, BlackPixelOfScreen(xfc->screen));
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);
+
+ image->data = NULL;
XDestroyImage(image);
if (cdata != data)
image->byte_order = LSBFirst;
image->bitmap_bit_order = LSBFirst;
XPutImage(xfc->display, bitmap, xfc->gc_mono, image, 0, 0, 0, 0, width, height);
+ image->data = NULL;
XDestroyImage(image);
return bitmap;
}
image->bitmap_bit_order = LSBFirst;
XPutImage(xfc->display, xfc->primary, xfc->gc, image, 0, 0, left, top, width, height);
+ image->data = NULL;
XDestroyImage(image);
ret = xf_gdi_surface_update_frame(xfc, left, top, width, height);
}
#include <freerdp/log.h>
#include "xf_gfx.h"
+#include <X11/Xutil.h>
+
#define TAG CLIENT_TAG("x11")
static UINT xf_OutputUpdate(xfContext* xfc, xfGfxSurface* surface)
return CHANNEL_RC_OK;
error_set_surface_data:
+ surface->image->data = NULL;
XDestroyImage(surface->image);
error_surface_image:
_aligned_free(surface->stage);
#ifdef WITH_GFX_H264
h264_context_free(surface->gdi.h264);
#endif
+ surface->image->data = NULL;
XDestroyImage(surface->image);
_aligned_free(surface->gdi.data);
_aligned_free(surface->stage);
xf_lock_x11(xfc, FALSE);
- if (xbitmap->pixmap != 0)
+ if (xbitmap->pixmap != NULL)
+ {
XFreePixmap(xfc->display, xbitmap->pixmap);
+ xbitmap->pixmap = NULL;
+ }
if (xbitmap->image)
+ {
XDestroyImage(xbitmap->image);
+ xbitmap->image = NULL;
+ }
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);
+ image->data = NULL;
XDestroyImage(image);
xf_unlock_x11(xfc, FALSE);
return TRUE;
#include <rdtk/rdtk.h>
#include <X11/Xlib.h>
+#include <X11/Xutil.h>
#define TAG "rdtk.sample"
XFlush(display);
XDestroyImage(image);
- XFreePixmap(display, pixmap);
XCloseDisplay(display);
rdtk_surface_free(surface);