X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fnotification%2Fpacket.c;h=acf0ce5f1b8eb2b5235445f7eb4479cb6121c62d;hb=65300d60e4b4f167e5fc8f584677757ce09a3844;hp=8e02201d4539038b5a995da8557ebe6a8dcae6d7;hpb=07208d85d16704b304b371897bb7acc995fcc481;p=babeltrace.git diff --git a/lib/graph/notification/packet.c b/lib/graph/notification/packet.c index 8e02201d..acf0ce5f 100644 --- a/lib/graph/notification/packet.c +++ b/lib/graph/notification/packet.c @@ -59,7 +59,7 @@ struct bt_notification *bt_notification_packet_begin_new(struct bt_graph *graph) goto end; error: - BT_PUT(notification); + BT_OBJECT_PUT_REF_AND_RESET(notification); end: return (void *) notification; @@ -123,7 +123,7 @@ void bt_notification_packet_begin_destroy(struct bt_notification *notif) BT_LOGD("Destroying packet beginning notification: addr=%p", notif); BT_LOGD_STR("Putting packet."); - BT_PUT(packet_begin_notif->packet); + BT_OBJECT_PUT_REF_AND_RESET(packet_begin_notif->packet); g_free(notif); } @@ -180,7 +180,7 @@ struct bt_notification *bt_notification_packet_end_new(struct bt_graph *graph) goto end; error: - BT_PUT(notification); + BT_OBJECT_PUT_REF_AND_RESET(notification); end: return (void *) notification; @@ -244,7 +244,7 @@ void bt_notification_packet_end_destroy(struct bt_notification *notif) BT_LOGD("Destroying packet end notification: addr=%p", notif); BT_LOGD_STR("Putting packet."); - BT_PUT(packet_end_notif->packet); + BT_OBJECT_PUT_REF_AND_RESET(packet_end_notif->packet); g_free(notif); } @@ -263,7 +263,7 @@ void bt_notification_packet_end_recycle(struct bt_notification *notif) BT_LOGD("Recycling packet end notification: addr=%p", notif); bt_notification_reset(notif); - BT_PUT(packet_end_notif->packet); + BT_OBJECT_PUT_REF_AND_RESET(packet_end_notif->packet); graph = notif->graph; notif->graph = NULL; bt_object_pool_recycle_object(&graph->packet_end_notif_pool, notif);