From e82b8f6fda084c8ab491b054a33845a4f65bb59f Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Sat, 4 May 2024 13:06:18 +0200 Subject: [PATCH] Fix small memleak in test_lib_part.cpp --- qa/tests/eeschema/test_lib_part.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tests/eeschema/test_lib_part.cpp b/qa/tests/eeschema/test_lib_part.cpp index 12b13840d8..fab50cbe93 100644 --- a/qa/tests/eeschema/test_lib_part.cpp +++ b/qa/tests/eeschema/test_lib_part.cpp @@ -516,8 +516,8 @@ BOOST_AUTO_TEST_CASE( Compare ) // Time stamp comparison tests. // Check to see if we broke the copy ctor. - LIB_SYMBOL* copy = new LIB_SYMBOL( testPart ); - BOOST_CHECK( testPart.Compare( *copy ) == 0 ); + LIB_SYMBOL copy( testPart ); + BOOST_CHECK( testPart.Compare( copy ) == 0 ); }