mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
fixed possible mem leak in goptions dialog
This commit is contained in:
parent
7f57f1d450
commit
c0452772a0
1 changed files with 4 additions and 1 deletions
|
@ -359,7 +359,10 @@ void ControllerUI::addBinding( Binding* b )
|
||||||
// button to remove a binding, uses bindingsID vector to get unique number
|
// button to remove a binding, uses bindingsID vector to get unique number
|
||||||
stringstream id;
|
stringstream id;
|
||||||
id << b->ID;
|
id << b->ID;
|
||||||
Fl_Button* but = new Fl_Button(35, 35, 25, 25, strdup(id.str().c_str() ) );
|
char *str = strdup(id.str().c_str());
|
||||||
|
Fl_Button* but = new Fl_Button(35, 35, 25, 25, str );
|
||||||
|
if(!but)
|
||||||
|
free(str);
|
||||||
but->callback( deleteBindingFromController, this );
|
but->callback( deleteBindingFromController, this );
|
||||||
but->redraw();
|
but->redraw();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue