From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6D73145A67 for ; Tue, 13 Jun 2023 04:20:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9AA6368C36D; Tue, 13 Jun 2023 07:20:26 +0300 (EEST) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 76C9868C33F for ; Tue, 13 Jun 2023 07:20:20 +0300 (EEST) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 8574E1060154 for ; Tue, 13 Jun 2023 04:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1686630020; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=nIxvLWS4m1ZkdCOs8e5tsM2cTsDyLLNgiyrodKg7SY4=; b=pjRzChCaunmFweDThHYeX+koiIfvK8wjobvEU/VTuvqWIXRUT9Bbch/+zhxB5sfp 6E7u8ofI1jXUMN0mJDflSPBOcw0QLNo4NxRVhgLbi02VhNTik1BxoijyQ5t/xzSBHS5 hapRBT4x50mjVghBDdpwZ8wUHCEwEywjbAkK1z/pPZG3fHav+ocU9P+jtGMAJhOFnkS jyoWKvgariTel9pc436Qzf4gRM9wNWJ9fgMJ+4q3fjTkxFI+DKvBq442G7U9xrXq7QX +HN8iDA3KG4o12n3S1e9zJq5/EUHVlC9QBP+ru9+iqgcZuq/uEyMJ9c74j8kW4iREjw sEgOk+y3Wg== Date: Tue, 13 Jun 2023 06:20:20 +0200 (CEST) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_228509_746735214.1686630020190" Subject: [FFmpeg-devel] [PATCH 3/5] hwcontext_vulkan: call ff_vk_uninit() on device uninit X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: ------=_Part_228509_746735214.1686630020190 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit This fixes three memory leaks from ff_vk_load_props(). Does not depend on any other patches. Patch attached. ------=_Part_228509_746735214.1686630020190 Content-Type: text/x-diff; charset=us-ascii; name=0003-hwcontext_vulkan-call-ff_vk_uninit-on-device-uninit.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0003-hwcontext_vulkan-call-ff_vk_uninit-on-device-uninit.patch >From 75945869e8341058edd1fca72b9ccf46d0086ddc Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 13 Jun 2023 04:35:29 +0200 Subject: [PATCH 3/5] hwcontext_vulkan: call ff_vk_uninit() on device uninit This fixes three memory leaks from ff_vk_load_props(). --- libavutil/hwcontext_vulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 1132a61390..c86229ba65 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -1176,6 +1176,8 @@ static void vulkan_device_free(AVHWDeviceContext *ctx) RELEASE_PROPS(hwctx->enabled_inst_extensions, hwctx->nb_enabled_inst_extensions); RELEASE_PROPS(hwctx->enabled_dev_extensions, hwctx->nb_enabled_dev_extensions); + + ff_vk_uninit(&p->vkctx); } static int vulkan_device_create_internal(AVHWDeviceContext *ctx, -- 2.40.1 ------=_Part_228509_746735214.1686630020190 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ------=_Part_228509_746735214.1686630020190--