diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-04-14 09:40:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 09:40:51 +0200 |
commit | 00cf4e6f41aacc1106051673bfd837f7332254a2 (patch) | |
tree | 2933f41b753d95c7d4d5d0f25a398ec9deee8591 /src/ui | |
parent | a42c2a113425959076557a69e129b210c9fd64c8 (diff) | |
parent | b3eea1312575d4ab4a52f6860940164f7cb1dceb (diff) | |
download | profani-tty-00cf4e6f41aacc1106051673bfd837f7332254a2.tar.gz |
Merge pull request #1313 from profanity-im/memleaks
Free GError objects
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/notifier.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/notifier.c b/src/ui/notifier.c index 9b2714a1..550416b9 100644 --- a/src/ui/notifier.c +++ b/src/ui/notifier.c @@ -224,9 +224,10 @@ notify(const char *const message, int timeout, const char *const category) log_error("Error sending desktop notification:"); log_error(" -> Message : %s", message); log_error(" -> Error : %s", error->message); + g_error_free(error); } else { - log_debug("Notification sent."); - } + log_debug("Notification sent."); + } } else { log_error("Libnotify not initialised."); } |