From 5ecf00aaf01cc8cd713da5edd15d74067266bf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Thu, 5 Jun 2025 10:29:27 +0200 Subject: [PATCH] cbm: Don't leak cbm-part in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Günther --- src/tests/test-cbm-part.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tests/test-cbm-part.c b/src/tests/test-cbm-part.c index 07796047..9464758f 100644 --- a/src/tests/test-cbm-part.c +++ b/src/tests/test-cbm-part.c @@ -31,7 +31,7 @@ static void test_cbm_ca (void) { g_autoptr(GError) err = NULL; - MMCbmPart *part; + g_autoptr(MMCbmPart) part = NULL; guint16 serial; static const guint8 pdu[] = { @@ -76,7 +76,7 @@ static void test_cbm_ucs2 (void) { g_autoptr(GError) err = NULL; - MMCbmPart *part; + g_autoptr(MMCbmPart) part = NULL; guint16 serial; static const guint8 pdu [] = { @@ -120,7 +120,7 @@ static void test_cbm_eu (void) { g_autoptr(GError) err = NULL; - MMCbmPart *part; + g_autoptr(MMCbmPart) part = NULL; guint16 serial; static const guint8 pdu[] = { @@ -238,7 +238,7 @@ static void test_cbm_gsm7bit_with_lang (void) { g_autoptr(GError) err = NULL; - MMCbmPart *part; + g_autoptr(MMCbmPart) part = NULL; static const guint8 pdu[] = { 0x40, 0xC0, 0x11, 0x1F, 0x10 /* GSM 7Bit with language */, 0x13, @@ -261,7 +261,7 @@ static void test_cbm_ucs2_with_7bit_lang (void) { g_autoptr(GError) err = NULL; - MMCbmPart *part; + g_autoptr(MMCbmPart) part = NULL; static const guint8 pdu [] = { 0x63, 0x40, 0x00, 0x32, 0x11 /* UCS2 with 7Bit language */, 0x14,