plugin.c: fix optionptr mem-leak

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent 1567177150
commit abdd422aa9
  1. 2
      src/main/plugin.c

@ -493,6 +493,8 @@ gboolean li_plugin_set_default_option(liServer* srv, const gchar* name, liValue*
return FALSE;
}
li_release_optionptr(srv, g_array_index(srv->optionptr_def_values, liOptionPtrValue*, soptptr->index));
g_array_index(srv->optionptr_def_values, liOptionPtrValue*, soptptr->index) = setting.value;
} else {
ERROR(srv, "unknown option \"%s\"", name);

Loading…
Cancel
Save