From 80be181752a6ff396147802e818f7c38c1651050 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 12 Feb 2016 22:57:11 +0100 Subject: [PATCH] alpm: port to g_autoptr() --- backends/alpm/pk-alpm-search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/alpm/pk-alpm-search.c b/backends/alpm/pk-alpm-search.c index d02511327..a04f052b1 100644 --- a/backends/alpm/pk-alpm-search.c +++ b/backends/alpm/pk-alpm-search.c @@ -268,7 +268,7 @@ static gboolean pk_alpm_search_is_application (alpm_pkg_t *pkg) { guint i; alpm_filelist_t *filelist; - GRegex _cleanup_regex_unref_ *regex = NULL; + g_autoptr(GRegex) regex = NULL; filelist = alpm_pkg_get_files (pkg); regex = g_regex_new ("^usr/share/applications/.*\\.desktop$", 0, 0, NULL);