summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sensei-raw-ctl-gui.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sensei-raw-ctl-gui.c b/sensei-raw-ctl-gui.c
index 01d1e62..3a7de24 100644
--- a/sensei-raw-ctl-gui.c
+++ b/sensei-raw-ctl-gui.c
@@ -29,6 +29,18 @@
#include "config.h"
+#if ! GLIB_CHECK_VERSION (2, 34, 0)
+static void
+g_clear_pointer (void **pointer, void (*destroy) (void *))
+{
+ if (*pointer)
+ {
+ destroy (*pointer);
+ *pointer = NULL;
+ }
+}
+#endif // ! GLIB_CHECK_VERSION (2, 34)
+
/** User interface string for GtkBuilder. */
extern const char ui[];