initialize some uninitialized variables
This commit is contained in:
parent
28bb82cee7
commit
a66ad18402
|
@ -35,6 +35,7 @@ PolyLine::PolyLine (Canvas* c)
|
|||
PolyLine::PolyLine (Item* parent)
|
||||
: PolyItem (parent)
|
||||
, _threshold (1.0)
|
||||
, _y1 (0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ instantiate(const LV2_Descriptor* descriptor,
|
|||
const char* bundle_path,
|
||||
const LV2_Feature* const* features)
|
||||
{
|
||||
Aeq* aeq = (Aeq*)malloc(sizeof(Aeq));
|
||||
Aeq* aeq = (Aeq*)calloc(1, sizeof(Aeq));
|
||||
aeq->srate = rate;
|
||||
|
||||
#ifdef LV2_EXTENDED
|
||||
|
@ -142,6 +142,8 @@ instantiate(const LV2_Descriptor* descriptor,
|
|||
for (int i = 0; i < BANDS; i++)
|
||||
linear_svf_reset(&aeq->v_filter[i]);
|
||||
|
||||
// TODO initialize self->v_
|
||||
|
||||
aeq->need_expose = true;
|
||||
#ifdef LV2_EXTENDED
|
||||
aeq->display = NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user