13
0

Fix memory leak.

This commit is contained in:
David Robillard 2013-03-24 20:10:11 -04:00
parent 024dfe47f5
commit fe29965980

View File

@ -990,10 +990,10 @@ LV2Plugin::load_preset(PresetRecord r)
if (state) { if (state) {
lilv_state_restore(state, _impl->instance, set_port_value, this, 0, NULL); lilv_state_restore(state, _impl->instance, set_port_value, this, 0, NULL);
lilv_state_free(state); lilv_state_free(state);
return true;
} else {
return false;
} }
lilv_node_free(pset);
return state;
} }
const void* const void*