Skip to content

Commit

Permalink
Fix memory leaks in viewer property editor (AcademySoftwareFoundation…
Browse files Browse the repository at this point in the history
…#2043)

Fixed memory leaks in Viewer by making sure that _gridLayout3 in PropertyEditor gets connected to the top-level NanoGUI parent
  • Loading branch information
hridizaroy authored Oct 1, 2024
1 parent 923ffd9 commit 29477f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/MaterialXView/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ void PropertyEditor::updateContents(Viewer* viewer)
{
ng::Widget* twoColumns = new ng::Widget(_container);
twoColumns->set_layout(_gridLayout2);
ng::Widget* threeColumns = new ng::Widget(_container);
threeColumns->set_layout(_gridLayout3);
ng::Label* modelLabel = new ng::Label(twoColumns, "Shading Model");
modelLabel->set_font_size(20);
modelLabel->set_font("sans-bold");
Expand Down

0 comments on commit 29477f7

Please sign in to comment.