mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Check for null before freeing X11info, removed free current resource
This commit is contained in:
parent
c3847eec34
commit
83fc97621c
@ -241,7 +241,6 @@ _get_most_available_resource(PContact contact)
|
|||||||
resources = g_list_next(resources);
|
resources = g_list_next(resources);
|
||||||
}
|
}
|
||||||
free(resources);
|
free(resources);
|
||||||
free(current);
|
|
||||||
|
|
||||||
return highest;
|
return highest;
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,9 @@ _ui_get_idle_time(void)
|
|||||||
XFree(info);
|
XFree(info);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
XFree(info);
|
if (info != NULL) {
|
||||||
|
XFree(info);
|
||||||
|
}
|
||||||
// if no libxss or xss idle time failed, use profanity idle time
|
// if no libxss or xss idle time failed, use profanity idle time
|
||||||
#endif
|
#endif
|
||||||
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user