about summary refs log tree commit diff stats
path: root/src/ui/notifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/notifier.c')
-rw-r--r--src/ui/notifier.c5
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.");
     }