void freerdp_event_free(wMessage* event) { if (event) { if (event->Free) event->Free(event); switch (GetMessageClass(event->id)) { case CliprdrChannel_Class: freerdp_cliprdr_event_free(event); break; case TsmfChannel_Class: freerdp_tsmf_event_free(event); break; case RailChannel_Class: freerdp_rail_event_free(event); break; } free(event); } }
void freerdp_event_free(RDP_EVENT* event) { if (event != NULL) { if (event->on_event_free_callback != NULL) event->on_event_free_callback(event); switch (event->event_class) { case RDP_EVENT_CLASS_CLIPRDR: freerdp_cliprdr_event_free(event); break; case RDP_EVENT_CLASS_TSMF: freerdp_tsmf_event_free(event); break; case RDP_EVENT_CLASS_RAIL: freerdp_rail_event_free(event); break; } xfree(event); } }