X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Ftrace-class.c;h=f9b8adea7e888611b4658cdb31ac1491ef0ba9b8;hp=fb9f8a5a4557c98dd539b7e24d180cae879421b5;hb=727170fcc3f4002562f42deeac27c985fa69f57f;hpb=864aa43f27af7a2e671a148d11b636aafa10409b diff --git a/src/lib/trace-ir/trace-class.c b/src/lib/trace-ir/trace-class.c index fb9f8a5a..f9b8adea 100644 --- a/src/lib/trace-ir/trace-class.c +++ b/src/lib/trace-ir/trace-class.c @@ -25,6 +25,7 @@ #include "lib/logging.h" #include "lib/assert-pre.h" +#include "lib/assert-post.h" #include #include #include @@ -106,7 +107,7 @@ void destroy_trace_class(struct bt_object *obj) * The destruction listener should not have kept a * reference to the trace class. */ - BT_ASSERT_PRE(tc->base.ref_count == 1, "Destruction listener kept a reference to the trace class being destroyed: %![tc-]+T", tc); + BT_ASSERT_POST(tc->base.ref_count == 1, "Destruction listener kept a reference to the trace class being destroyed: %![tc-]+T", tc); } g_array_free(tc->destruction_listeners, TRUE); tc->destruction_listeners = NULL;