[gnome-software/gnome-3-34] gs-details-page: Fix a minor leak in a comparison function
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-34] gs-details-page: Fix a minor leak in a comparison function
- Date: Mon, 25 Nov 2019 10:01:27 +0000 (UTC)
commit deb79ab801ef9d7c233c047ac3de571bb4b88eef
Author: Philip Withnall <withnall endlessm com>
Date: Tue Nov 12 21:18:09 2019 +0000
gs-details-page: Fix a minor leak in a comparison function
Signed-off-by: Philip Withnall <withnall endlessm com>
src/gs-details-page.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 62c28bca..26c6578e 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -2012,9 +2012,10 @@ origin_popover_list_sort_func (GtkListBoxRow *a,
{
GsApp *a1 = gs_origin_popover_row_get_app (GS_ORIGIN_POPOVER_ROW (a));
GsApp *a2 = gs_origin_popover_row_get_app (GS_ORIGIN_POPOVER_ROW (b));
+ g_autofree gchar *a1_origin = gs_app_get_origin_ui (a1);
+ g_autofree gchar *a2_origin = gs_app_get_origin_ui (a2);
- return g_strcmp0 (gs_app_get_origin_ui (a1),
- gs_app_get_origin_ui (a2));
+ return g_strcmp0 (a1_origin, a2_origin);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]