Fix a double free when you have a mousebind without a button attribute
[dana/openbox.git] / openbox / config.c
index 656ad3c..025a683 100644 (file)
@@ -526,8 +526,8 @@ static void parse_mouse(xmlNodePtr node, gpointer d)
                         mouse_bind(buttonstr, cx, mact, action);
                     nact = obt_xml_find_node(nact->next, "action");
                 }
-            next_nbut:
             g_free(buttonstr);
+            next_nbut:
             nbut = obt_xml_find_node(nbut->next, "mousebind");
             }
         }