Changes in uspace/lib/gui/connection.c [62fbb7e:10cb47e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/connection.c
r62fbb7e r10cb47e 198 198 list_foreach(sig_node->slots, link, slot_node_t, cur) { 199 199 void *data_copy = NULL; 200 if (data != NULL) {200 if (data != NULL) 201 201 data_copy = malloc(data_size); 202 }203 if (data_copy != NULL) {202 203 if (data_copy != NULL) 204 204 memcpy(data_copy, data, data_size); 205 }205 206 206 window_event_t *event = 207 208 207 (window_event_t *) malloc(sizeof(window_event_t)); 208 209 209 if (event) { 210 210 link_initialize(&event->link); … … 215 215 prodcons_produce(&cur->widget->window->events, &event->link); 216 216 } else { 217 if (data_copy != NULL) {217 if (data_copy != NULL) 218 218 free(data_copy); 219 }220 219 } 221 220 }
Note:
See TracChangeset
for help on using the changeset viewer.