Skip to content

Commit 1509ab7

Browse files
committed
Fixed widget removal
1 parent 6d36bbf commit 1509ab7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/widgets/specific/AudioEnvelope.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ namespace lsp
214214
void AudioEnvelope::destroy()
215215
{
216216
nFlags |= FINALIZED;
217-
Widget::destroy();
218217
do_destroy();
218+
219+
Widget::destroy();
219220
}
220221

221222
void AudioEnvelope::do_destroy()

src/main/widgets/specific/AudioSample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ namespace lsp
13321332

13331333
AudioEnvelope *envelope = widget_cast<AudioEnvelope>(child);
13341334
if (envelope != NULL)
1335-
return vChannels.premove(envelope);
1335+
return vEnvelopes.premove(envelope);
13361336

13371337
return STATUS_BAD_TYPE;
13381338
}

0 commit comments

Comments
 (0)