Fix crash when saving state without a kit loaded
This commit is contained in:
parent
f6e1a21108
commit
a593de0836
2
drmr.c
2
drmr.c
@ -442,6 +442,7 @@ save_state(LV2_Handle instance,
|
|||||||
return LV2_STATE_ERR_NO_FEATURE;
|
return LV2_STATE_ERR_NO_FEATURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (drmr->current_path != NULL) {
|
||||||
char* mapped_path = map_path->abstract_path(map_path->handle,
|
char* mapped_path = map_path->abstract_path(map_path->handle,
|
||||||
drmr->current_path);
|
drmr->current_path);
|
||||||
|
|
||||||
@ -452,6 +453,7 @@ save_state(LV2_Handle instance,
|
|||||||
drmr->uris.string_urid,
|
drmr->uris.string_urid,
|
||||||
LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE);
|
LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE);
|
||||||
if (stat) return stat;
|
if (stat) return stat;
|
||||||
|
}
|
||||||
|
|
||||||
flag = drmr->ignore_velocity?1:0;
|
flag = drmr->ignore_velocity?1:0;
|
||||||
stat = store(handle,
|
stat = store(handle,
|
||||||
|
Loading…
Reference in New Issue
Block a user