Diff for /qemu/qlist.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2018/04/24 18:23:50 version 1.1.1.3, 2018/04/24 19:17:09
Line 31  QList *qlist_new(void) Line 31  QList *qlist_new(void)
 {  {
     QList *qlist;      QList *qlist;
   
     qlist = qemu_malloc(sizeof(*qlist));      qlist = g_malloc(sizeof(*qlist));
     QTAILQ_INIT(&qlist->head);      QTAILQ_INIT(&qlist->head);
     QOBJECT_INIT(qlist, &qlist_type);      QOBJECT_INIT(qlist, &qlist_type);
   
Line 64  void qlist_append_obj(QList *qlist, QObj Line 64  void qlist_append_obj(QList *qlist, QObj
 {  {
     QListEntry *entry;      QListEntry *entry;
   
     entry = qemu_malloc(sizeof(*entry));      entry = g_malloc(sizeof(*entry));
     entry->value = value;      entry->value = value;
   
     QTAILQ_INSERT_TAIL(&qlist->head, entry, next);      QTAILQ_INSERT_TAIL(&qlist->head, entry, next);
Line 98  QObject *qlist_pop(QList *qlist) Line 98  QObject *qlist_pop(QList *qlist)
     QTAILQ_REMOVE(&qlist->head, entry, next);      QTAILQ_REMOVE(&qlist->head, entry, next);
   
     ret = entry->value;      ret = entry->value;
     qemu_free(entry);      g_free(entry);
   
     return ret;      return ret;
 }  }
Line 150  static void qlist_destroy_obj(QObject *o Line 150  static void qlist_destroy_obj(QObject *o
     QTAILQ_FOREACH_SAFE(entry, &qlist->head, next, next_entry) {      QTAILQ_FOREACH_SAFE(entry, &qlist->head, next, next_entry) {
         QTAILQ_REMOVE(&qlist->head, entry, next);          QTAILQ_REMOVE(&qlist->head, entry, next);
         qobject_decref(entry->value);          qobject_decref(entry->value);
         qemu_free(entry);          g_free(entry);
     }      }
   
     qemu_free(qlist);      g_free(qlist);
 }  }

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


unix.superglobalmegacorp.com