about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common.c2
-rw-r--r--src/ui/notifier.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index c056d167..31194352 100644
--- a/src/common.c
+++ b/src/common.c
@@ -114,6 +114,8 @@ copy_file(const char *const sourcepath, const char *const targetpath, const gboo
     GError *error = NULL;
     GFileCopyFlags flags = overwrite_existing ? G_FILE_COPY_OVERWRITE : G_FILE_COPY_NONE;
     gboolean success = g_file_copy (source, dest, flags, NULL, NULL, NULL, &error);
+    if (error != NULL)
+        g_error_free(error);
     g_object_unref(source);
     g_object_unref(dest);
     return success;
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.");
     }
flatten deques too.' href='/akspecs/ranger/commit/ranger/ext/flatten.py?id=b953eb51ab4f70f35e643a6b345a79b98d9cea98'>b953eb51 ^
0fd1c723 ^
5603e0fa ^





0fd1c723 ^

b953eb51 ^
0fd1c723 ^



b6d4e3e5 ^







5603e0fa ^




b6d4e3e5 ^





5603e0fa ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59