[template-glib] expr: add autoptr cleanup func
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] expr: add autoptr cleanup func
- Date: Tue, 3 May 2022 20:14:22 +0000 (UTC)
commit 20639d457aff9bf8ea5de25dc2162a19cc6f45a5
Author: Christian Hergert <chergert redhat com>
Date: Tue May 3 13:14:01 2022 -0700
expr: add autoptr cleanup func
src/tmpl-expr.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/tmpl-expr.h b/src/tmpl-expr.h
index 7686532..c34baa4 100644
--- a/src/tmpl-expr.h
+++ b/src/tmpl-expr.h
@@ -85,6 +85,8 @@ TMPL_AVAILABLE_IN_ALL
TmplExpr *tmpl_expr_new_symbol_assign (const gchar *symbol,
TmplExpr *right);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (TmplExpr, tmpl_expr_unref)
+
G_END_DECLS
#endif /* TMPL_EXPR_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]