diff options
author | Immae <ismael.bouya@normalesup.org> | 2014-06-23 12:05:49 +0200 |
---|---|---|
committer | Immae <ismael.bouya@normalesup.org> | 2014-06-23 12:05:49 +0200 |
commit | c3847eec34476fa15d8bc50671f1377a0cb27fd8 (patch) | |
tree | 957c354b7bf7090a5a87273052c34ce8d999b72e | |
parent | d668d15081f3d38d618457cb9016100acc6877dc (diff) | |
download | profani-tty-c3847eec34476fa15d8bc50671f1377a0cb27fd8.tar.gz |
Free some memory
-rw-r--r-- | src/contact.c | 2 | ||||
-rw-r--r-- | src/ui/core.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/contact.c b/src/contact.c index 52942bec..839e7d10 100644 --- a/src/contact.c +++ b/src/contact.c @@ -240,6 +240,8 @@ _get_most_available_resource(PContact contact) resources = g_list_next(resources); } + free(resources); + free(current); return highest; } diff --git a/src/ui/core.c b/src/ui/core.c index 84fcebfd..30f79659 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -137,6 +137,7 @@ _ui_get_idle_time(void) XFree(info); return result; } + XFree(info); // if no libxss or xss idle time failed, use profanity idle time #endif gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL); |