summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/clock-face.c1
-rw-r--r--applets/fish/fish.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/applets/clock/clock-face.c b/applets/clock/clock-face.c
index dfe1e224..77c5de4b 100644
--- a/applets/clock/clock-face.c
+++ b/applets/clock/clock-face.c
@@ -545,6 +545,7 @@ clock_face_load_face (ClockFace *this, gint width, gint height)
priv->face_pixbuf = g_hash_table_lookup (pixbuf_cache, cache_name);
if (priv->face_pixbuf) {
g_object_ref (priv->face_pixbuf);
+ g_free (cache_name);
return;
}
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index 5ab04e09..d097d12d 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -1129,8 +1129,8 @@ static char* get_location(void)
count++;
if (count != 2) {
- return NULL;
g_free (buffer);
+ return NULL;
}
memcpy (location, &buffer [i + 2], len - i - 2);