diff options
author | Robert Tari <robert@tari.in> | 2023-08-05 02:01:59 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2023-08-05 02:01:59 +0200 |
commit | ebb915b50119f79968a8e93697a90660eab93872 (patch) | |
tree | 1218189c1be68a33ecd94993011d759616e418fc /src | |
parent | 579cad6e979ba6b271a121749a78331b406f127a (diff) | |
download | ayatana-ido-ebb915b50119f79968a8e93697a90660eab93872.tar.gz ayatana-ido-ebb915b50119f79968a8e93697a90660eab93872.tar.bz2 ayatana-ido-ebb915b50119f79968a8e93697a90660eab93872.zip |
Fix possible memory leaks
Diffstat (limited to 'src')
-rw-r--r-- | src/idoappointmentmenuitem.c | 3 | ||||
-rw-r--r-- | src/idolocationmenuitem.c | 3 | ||||
-rw-r--r-- | src/idousermenuitem.c | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/idoappointmentmenuitem.c b/src/idoappointmentmenuitem.c index 0219c2c..dcdc3a8 100644 --- a/src/idoappointmentmenuitem.c +++ b/src/idoappointmentmenuitem.c @@ -1,6 +1,6 @@ /* * Copyright 2013 Canonical Ltd. - * Copyright 2021 Robert Tari + * Copyright 2021-2023 Robert Tari * * Authors: * Charles Kerr <charles.kerr@canonical.com> @@ -136,6 +136,7 @@ ido_appointment_menu_item_new_from_model (GMenuItem * menu_item, for (i=0; i<n; i++) g_value_unset (&values[i]); + g_free (values); /* add an ActionHelper */ diff --git a/src/idolocationmenuitem.c b/src/idolocationmenuitem.c index 6999cc1..2748e54 100644 --- a/src/idolocationmenuitem.c +++ b/src/idolocationmenuitem.c @@ -1,8 +1,10 @@ /* * Copyright 2013 Canonical Ltd. + * Copyright 2023 Robert Tari * * Authors: * Charles Kerr <charles.kerr@canonical.com> + * Robert Tari <robert@tari.in> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -337,6 +339,7 @@ ido_location_menu_item_new_from_model (GMenuItem * menu_item, for (i=0; i<n; i++) g_value_unset (&values[i]); + g_free (values); /* give it an ActionHelper */ diff --git a/src/idousermenuitem.c b/src/idousermenuitem.c index 1f157ae..4279723 100644 --- a/src/idousermenuitem.c +++ b/src/idousermenuitem.c @@ -1,10 +1,12 @@ /* Copyright 2011 Canonical Ltd. +Copyright 2023 Robert Tari Authors: Conor Curran <conor.curran@canonical.com> Mirco Müller <mirco.mueller@canonical.com> Charles Kerr <charles.kerr@canonical.com> + Robert Tari <robert@tari.in> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published @@ -445,6 +447,8 @@ user_menu_item_new_from_model (GMenuItem * menuitem, for (i=0; i<n; i++) g_value_unset (&values[i]); + g_free (values); + /* gie it an ActionHelper */ if (g_menu_item_get_attribute (menuitem, G_MENU_ATTRIBUTE_ACTION, "s", &action)) |