mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix a couple of small problems in add weightsystem
The constructor letf the currentWeightsytem variable uninitialized. Instead of creating the memory leak by malloc-ing the newWeightsystem in the on_addWeight_clicked() function use a local variable instead and pass its address around. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f45618f0c7
commit
00d8531382
2 changed files with 6 additions and 5 deletions
|
@ -14,6 +14,7 @@
|
|||
AddWeightsystemDialog::AddWeightsystemDialog(QWidget *parent) : ui(new Ui::AddWeightsystemDialog())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
currentWeightsystem = NULL;
|
||||
}
|
||||
|
||||
void AddWeightsystemDialog::setWeightsystem(weightsystem_t *ws)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue