diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-02 23:19:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-11 09:22:02 +0100 |
| commit | 05e0256ad304bafaadc8670eaa1c88b5b15f0535 (patch) | |
| tree | 3aa0a29bf9c0bf3dc252ca28517a5dff18507328 /test/test.cc | |
| parent | 80313b07095814f0178be70bc0651c1e052decea (diff) | |
Fix memory leak in test.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index bf008998a..b1d4fa158 100644 --- a/test/test.cc +++ b/test/test.cc @@ -830,10 +830,10 @@ check_one_frame (boost::filesystem::path dcp_dir, int64_t index, boost::filesyst auto asset = dynamic_pointer_cast<dcp::MonoPictureAsset> (dcp.cpls().front()->reels().front()->main_picture()->asset()); BOOST_REQUIRE (asset); auto frame = asset->start_read()->get_frame(index); - auto ref_frame (new dcp::MonoPictureFrame (ref)); + dcp::MonoPictureFrame ref_frame(ref); auto image = frame->xyz_image (); - auto ref_image = ref_frame->xyz_image (); + auto ref_image = ref_frame.xyz_image(); BOOST_REQUIRE (image->size() == ref_image->size()); |
