mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
-Fixed small memory leak in gtrack
This commit is contained in:
parent
24b23a1d9f
commit
40724e3bca
1 changed files with 10 additions and 1 deletions
|
@ -15,7 +15,8 @@ class GTrack : public Fl_Group
|
|||
public:
|
||||
GTrack(int x, int y, int w, int h, const char* l = 0 ) :
|
||||
Fl_Group(x, y, w, h),
|
||||
bg( x, y , w, h, strdup(l) ),
|
||||
title( strdup(l) ),
|
||||
bg( x, y , w, h, title ),
|
||||
|
||||
button1(x + 5, y + 24, 18, 18,"1"),
|
||||
button2(x + 5, y + 44, 18, 18,"2"),
|
||||
|
@ -31,8 +32,15 @@ class GTrack : public Fl_Group
|
|||
end(); // close the group
|
||||
}
|
||||
|
||||
~GTrack()
|
||||
{
|
||||
free(title);
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
char* title;
|
||||
|
||||
Avtk::Background bg;
|
||||
|
||||
Avtk::Button button1;
|
||||
|
@ -46,6 +54,7 @@ class GTrack : public Fl_Group
|
|||
Avtk::Dial dial2;
|
||||
Avtk::Dial dial3;
|
||||
|
||||
|
||||
static int privateID;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue