Skip to content

Commit

Permalink
memleak fix: converter test leak fix
Browse files Browse the repository at this point in the history
converter gtest code mem leak by not calling gst_object_unref

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
myungjoo committed Sep 6, 2023
1 parent 28ca69a commit 69caa1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/nnstreamer_converter/unittest_converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ TEST (tensorConverterPython, dynamicDimension)
EXPECT_EQ (1U, config.info.info[0].dimension[3]);
gst_tensors_config_free (&config);
gst_caps_unref (caps);
gst_object_unref (sink_pad);

EXPECT_EQ (gst_app_src_push_buffer (GST_APP_SRC (appsrc_handle), buf_2), GST_FLOW_OK);
EXPECT_TRUE (wait_pipeline_process_buffers (data_received, 3, TEST_TIMEOUT_MS));
Expand Down

0 comments on commit 69caa1c

Please sign in to comment.