trimmer: use g_match_info_free instead of g_match_info_unref
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 4 Jul 2019 20:31:00 +0000 (16:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:34 +0000 (11:53 -0400)
commitfc4875226f4c56f908b0db48d87e025b844148d1
treee6c01994129a94bb47f9bb1c30b7231df183dc42
parent3cb4eda7fbe6ebd105ae2b713ed1f218a2b72399
trimmer: use g_match_info_free instead of g_match_info_unref

The build fails with glib 2.22:

    trimmer.c: In function ‘compile_and_match’:
    trimmer.c:201:3: error: implicit declaration of function ‘g_match_info_unref’; did you mean ‘g_match_info_free’? [-Werror=implicit-function-declaration]
       g_match_info_unref(*match_info);
       ^~~~~~~~~~~~~~~~~~
       g_match_info_free

The g_match_info_unref function is only available from glib 2.30.  Use
g_match_info_free instead, which does the same for our use case.

Change-Id: I9357b9dd18501749e19481e9ef08ec9b01379ee6
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1633
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/utils/trimmer/trimmer.c
This page took 0.026146 seconds and 4 git commands to generate.