[gimp] app: fix string array leak as reported by Massimo.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix string array leak as reported by Massimo.
- Date: Sat, 14 Aug 2021 10:56:38 +0000 (UTC)
commit 4f7dceff15f6bebc8b97a8cc1ce5a5823e7f7fbf
Author: Jehan <jehan girinstud io>
Date: Sat Aug 14 12:54:13 2021 +0200
app: fix string array leak as reported by Massimo.
app/gimp-update.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/app/gimp-update.c b/app/gimp-update.c
index 66b2ad82b8..eae244697f 100644
--- a/app/gimp-update.c
+++ b/app/gimp-update.c
@@ -447,13 +447,12 @@ gimp_version_break (const gchar *v,
if (versions[2] != NULL)
{
*micro = g_ascii_strtoll (versions[2], NULL, 10);
- return TRUE;
}
}
}
g_strfreev (versions);
- return (*major > 0);
+ return (*major > 0 || *minor > 0 || *micro > 0);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]