1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'memleak'

This commit is contained in:
James Booth 2014-06-24 22:25:00 +01:00
commit 7872d8e14f
2 changed files with 4 additions and 0 deletions

View File

@ -240,6 +240,7 @@ _get_most_available_resource(PContact contact)
resources = g_list_next(resources);
}
free(resources);
return highest;
}

View File

@ -137,6 +137,9 @@ _ui_get_idle_time(void)
XFree(info);
return result;
}
if (info != NULL) {
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);