diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/NodeModule.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 9bbd48c2..e0509c51 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -173,14 +173,9 @@ NodeModule::port_activity(uint32_t index, const Atom& value) if (value.type() == uris.atom_Float) { _plugin_ui->port_event(index, sizeof(float), 0, value.ptr<float>()); } else { - // FIXME: Well, this sucks... - LV2_Atom* atom = (LV2_Atom*)malloc(sizeof(LV2_Atom) + value.size()); - atom->type = value.type(); - atom->size = value.size(); - memcpy(LV2_ATOM_BODY(atom), value.get_body(), value.size()); + const LV2_Atom* const atom = value.atom(); _plugin_ui->port_event( index, lv2_atom_total_size(atom), uris.atom_eventTransfer, atom); - free(atom); } } |