Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
Fixes gazebosim/gz-sim#1011

Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
  • Loading branch information
darksylinc committed Sep 19, 2021
1 parent 33edc9e commit 6d7e66d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/image_display/ImageDisplay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ void ImageDisplay::ProcessImage()
image.setPixel(i, j, value);
}
}

delete [] data;
}

this->dataPtr->provider->SetImage(image);
Expand Down

0 comments on commit 6d7e66d

Please sign in to comment.