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