Remove use of xnew.
This commit is contained in:
parent
64b0ab84b5
commit
873493a2de
@ -197,18 +197,18 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) {
|
|||||||
} /* end if printing enabled */
|
} /* end if printing enabled */
|
||||||
|
|
||||||
/* Init color conversion structure */
|
/* Init color conversion structure */
|
||||||
clrconv = xnew(CLRCONV);
|
clrconv = calloc(1, sizeof(CLRCONV));
|
||||||
clrconv->alpha = 1;
|
clrconv->alpha = 1;
|
||||||
clrconv->invert = 0;
|
clrconv->invert = 0;
|
||||||
clrconv->rgb555 = 0;
|
clrconv->rgb555 = 0;
|
||||||
clrconv->palette = xnew(rdpPalette);
|
clrconv->palette = calloc(1, sizeof(rdpPalette));
|
||||||
((rdp_freerdp_context*) context)->clrconv = clrconv;
|
((rdp_freerdp_context*) context)->clrconv = clrconv;
|
||||||
|
|
||||||
/* Init FreeRDP cache */
|
/* Init FreeRDP cache */
|
||||||
instance->context->cache = cache_new(instance->settings);
|
instance->context->cache = cache_new(instance->settings);
|
||||||
|
|
||||||
/* Set up bitmap handling */
|
/* Set up bitmap handling */
|
||||||
bitmap = xnew(rdpBitmap);
|
bitmap = calloc(1, sizeof(rdpBitmap));
|
||||||
bitmap->size = sizeof(guac_rdp_bitmap);
|
bitmap->size = sizeof(guac_rdp_bitmap);
|
||||||
bitmap->New = guac_rdp_bitmap_new;
|
bitmap->New = guac_rdp_bitmap_new;
|
||||||
bitmap->Free = guac_rdp_bitmap_free;
|
bitmap->Free = guac_rdp_bitmap_free;
|
||||||
@ -219,7 +219,7 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) {
|
|||||||
free(bitmap);
|
free(bitmap);
|
||||||
|
|
||||||
/* Set up glyph handling */
|
/* Set up glyph handling */
|
||||||
glyph = xnew(rdpGlyph);
|
glyph = calloc(1, sizeof(rdpGlyph));
|
||||||
glyph->size = sizeof(guac_rdp_glyph);
|
glyph->size = sizeof(guac_rdp_glyph);
|
||||||
glyph->New = guac_rdp_glyph_new;
|
glyph->New = guac_rdp_glyph_new;
|
||||||
glyph->Free = guac_rdp_glyph_free;
|
glyph->Free = guac_rdp_glyph_free;
|
||||||
@ -230,7 +230,7 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) {
|
|||||||
free(glyph);
|
free(glyph);
|
||||||
|
|
||||||
/* Set up pointer handling */
|
/* Set up pointer handling */
|
||||||
pointer = xnew(rdpPointer);
|
pointer = calloc(1, sizeof(rdpPointer));
|
||||||
pointer->size = sizeof(guac_rdp_pointer);
|
pointer->size = sizeof(guac_rdp_pointer);
|
||||||
pointer->New = guac_rdp_pointer_new;
|
pointer->New = guac_rdp_pointer_new;
|
||||||
pointer->Free = guac_rdp_pointer_free;
|
pointer->Free = guac_rdp_pointer_free;
|
||||||
|
Loading…
Reference in New Issue
Block a user