X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fport.c;fp=lib%2Fgraph%2Fport.c;h=4e1b44bb6e78248aa3c6423df1789bc0603d7dbb;hb=65300d60e4b4f167e5fc8f584677757ce09a3844;hp=5ed5f932874b82c6b6fef18a6d49bee19bb5958b;hpb=07208d85d16704b304b371897bb7acc995fcc481;p=babeltrace.git diff --git a/lib/graph/port.c b/lib/graph/port.c index 5ed5f932..4e1b44bb 100644 --- a/lib/graph/port.c +++ b/lib/graph/port.c @@ -89,7 +89,7 @@ struct bt_port *bt_port_create(struct bt_component *parent_component, port->name = g_string_new(name); if (!port->name) { BT_LOGE_STR("Failed to allocate one GString."); - BT_PUT(port); + BT_OBJECT_PUT_REF_AND_RESET(port); goto end; } @@ -130,7 +130,7 @@ struct bt_connection *bt_port_get_connection(struct bt_port *port) goto end; } - connection = bt_get(port->connection); + connection = bt_object_get_ref(port->connection); end: return connection; @@ -201,7 +201,7 @@ enum bt_port_status bt_private_port_remove_from_component( } end: - bt_put(comp); + bt_object_put_ref(comp); return status; }