xmlNodePtr n;
Options *o;
- o = g_new0(Options, 1);
+ o = g_slice_new0(Options);
- if ((n = obt_parse_find_node(node, "command")) ||
- (n = obt_parse_find_node(node, "execute")))
+ if ((n = obt_xml_find_node(node, "command")) ||
+ (n = obt_xml_find_node(node, "execute")))
{
- gchar *s = obt_parse_node_string(n);
+ gchar *s = obt_xml_node_string(n);
o->cmd = obt_paths_expand_tilde(s);
g_free(s);
}
{
Options *o = options;
g_free(o->cmd);
- g_free(o);
+ g_slice_free(Options, o);
}
/* Always return FALSE because its not interactive */