aboutsummaryrefslogtreecommitdiff
path: root/src/notifier.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-24 16:40:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-24 16:40:39 +0200
commitdc145085d9bb47bf40b1f8fac0123689b7e3b127 (patch)
treefb2186c681cdbcc75691882e549ba14177da0308 /src/notifier.c
parent12e9c966d6f633db7882d76ad25069e3c47a095c (diff)
parent62d78d59fab309f06de6fd4629d0c45523bcbf98 (diff)
downloadayatana-indicator-power-dc145085d9bb47bf40b1f8fac0123689b7e3b127.tar.gz
ayatana-indicator-power-dc145085d9bb47bf40b1f8fac0123689b7e3b127.tar.bz2
ayatana-indicator-power-dc145085d9bb47bf40b1f8fac0123689b7e3b127.zip
Merge branch 'tari01-pr/detect-remote-session'
Attributes GH PR #83: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/83
Diffstat (limited to 'src/notifier.c')
-rw-r--r--src/notifier.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/notifier.c b/src/notifier.c
index c513656..0a56b6b 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -1,6 +1,6 @@
/*
* Copyright 2014-2016 Canonical Ltd.
- * Copyright 2021-2022 Robert Tari
+ * Copyright 2021-2023 Robert Tari
*
* 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
@@ -309,7 +309,6 @@ notification_show(IndicatorPowerNotifier * self)
icon_name = NULL;
nn = notify_notification_new(title, body, icon_name);
g_strfreev (icon_names);
- g_free (body);
if (are_actions_supported(self))
{
@@ -355,6 +354,8 @@ notification_show(IndicatorPowerNotifier * self)
g_error_free(error);
g_object_unref(nn);
}
+
+ g_free (body);
}
/***