From patchwork Tue Sep 14 12:16:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13844 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id C7059BDB1D for ; Tue, 14 Sep 2021 12:17:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 386796024A; Tue, 14 Sep 2021 14:17:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="rhSyQbRi"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 30BD260132 for ; Tue, 14 Sep 2021 14:17:15 +0200 (CEST) Received: from perceval.ideasonboard.com (unknown [103.251.226.94]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D67CB2A5; Tue, 14 Sep 2021 14:17:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1631621834; bh=O/6rCn6se3EEqZ6C7DKyknMrDTYvYlLWBQqAFzYRTWI=; h=From:To:Cc:Subject:Date:From; b=rhSyQbRicfLzXL+IFFdCu/+IHBV1ttcjuV2FJZemT02i3j9GRjH5ibGfekfXhZKnS Y6Ji8nbBovQ9VXZd2ZeUlO6LBB6W1j2+WlhkoJNMAtBRUKsUIeOlSroajDNH4r+rIe YyuLLBqeUgJeeCXI9tw4tSEjUwSsSrVg9g3dtLss= From: Umang Jain To: libcamera-devel@lists.libcamera.org Date: Tue, 14 Sep 2021 17:46:58 +0530 Message-Id: <20210914121700.122591-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] test: gstreamer: cleanup and memory leak fixes X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Simplify the use of g_autoptr in gstreamer tests. Also fix memory leaks due to it. --- Vedant can you please take a look at it and test on platforms you have? I have tested on my primary machine with vimc and UVC with gstreamer enabled and the test passes fine still. Also, please let me know your thoughts on the patches. --- Umang Jain (2): test: gstreamer: Simplify elements' ownerships test: gstreamer_single_stream_test: Fix memory leak .../gstreamer_single_stream_test.cpp | 20 +++++++++++-------- test/gstreamer/gstreamer_test.cpp | 9 ++++----- 2 files changed, 16 insertions(+), 13 deletions(-)