Changeset f126c87 in mainline for uspace/lib/gui/connection.c
- Timestamp:
- 2016-09-01T16:46:27Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a2fbc8
- Parents:
- 9befb0d (diff), bdfdc51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/connection.c
r9befb0d rf126c87 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.