about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/xxxterm.c b/xxxterm.c
index b0d97c1..c5f88fd 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -443,18 +443,23 @@ is_g_object_setting(GObject *o, char *str)
 {
 	guint			n_props = 0, i;
 	GParamSpec		**proplist;
+	int			rv = 0;
 
-	if (! G_IS_OBJECT(o))
+	if (!G_IS_OBJECT(o))
 		return (0);
 
 	proplist = g_object_class_list_properties(G_OBJECT_GET_CLASS(o),
 	    &n_props);
 
-	for (i=0; i < n_props; i++) {
-		if (! strcmp(proplist[i]->name, str))
-			return (1);
+	for (i = 0; i < n_props; i++) {
+		if (! strcmp(proplist[i]->name, str)) {
+			rv = 1;
+			break;
+		}
 	}
-	return (0);
+
+	g_free(proplist);
+	return (rv);
 }
 
 struct tab *