Changeset f126c87 in mainline for uspace/lib/gui/connection.c


Ignore:
Timestamp:
2016-09-01T16:46:27Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge from mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/connection.c

    r9befb0d rf126c87  
    198198        list_foreach(sig_node->slots, link, slot_node_t, cur) {
    199199                void *data_copy = NULL;
    200                 if (data != NULL) {
     200                if (data != NULL)
    201201                        data_copy = malloc(data_size);
    202                 }
    203                 if (data_copy != NULL) {
     202               
     203                if (data_copy != NULL)
    204204                        memcpy(data_copy, data, data_size);
    205                 }
     205               
    206206                window_event_t *event =
    207                         (window_event_t *) malloc(sizeof(window_event_t));
    208 
     207                    (window_event_t *) malloc(sizeof(window_event_t));
     208               
    209209                if (event) {
    210210                        link_initialize(&event->link);
     
    215215                        prodcons_produce(&cur->widget->window->events, &event->link);
    216216                } else {
    217                         if (data_copy != NULL) {
     217                        if (data_copy != NULL)
    218218                                free(data_copy);
    219                         }
    220219                }
    221220        }
Note: See TracChangeset for help on using the changeset viewer.