Fix a double free when you have a mousebind without a button attribute

Introduced in f307a3feab
This commit is contained in:
Mikael Magnusson 2010-08-16 03:08:56 +02:00
parent 670ff8b4b8
commit 9fcf466aeb

View 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");
}
}