]> saetta.ns0.it Git - zakform/cgi/commitdiff
In ZakFormElement::render wrong variable freeing.
authorAndrea Zagli <azagli@libero.it>
Sat, 6 Apr 2019 09:42:57 +0000 (11:42 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 6 Apr 2019 09:42:57 +0000 (11:42 +0200)
src/formelement.c

index 356b277a9a251f3b2a8b641ddbd77ecf93d0f013..2399ff2bff4033f3ec752672613b0497d09e9d89 100644 (file)
@@ -214,8 +214,8 @@ gchar
                                        if (g_strstr_len (attr_class, -1, "form-control") == NULL)
                                                {
                                                        g_hash_table_insert (priv->ht_attrs, "class", g_strdup_printf ("%s form-control", attr_class));
+                                                       g_free (attr_class);
                                                }
-                                       g_free (attr_class);
                                }
                        else
                                {