diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 11:31:54 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 11:34:12 +0200 |
commit | e5ac12afa63457316793fa797d1a04202483ea05 (patch) | |
tree | 1b959a098338a89083c48f6310de7960cfffb4c9 /src/event | |
parent | 9774b0c5509193027d4f68df9dcb862455699cfc (diff) | |
download | profani-tty-e5ac12afa63457316793fa797d1a04202483ea05.tar.gz |
Remove prefs_free_string()
It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 137c6cd9..0d42e6c1 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -156,7 +156,7 @@ sv_ev_roster_received(void) char *theme = prefs_get_string(PREF_THEME); win_clear(win); theme_init(theme); - prefs_free_string(theme); + g_free(theme); ui_resize(); ui_show_roster(); } @@ -859,7 +859,7 @@ sv_ev_room_occupant_offline(const char *const room, const char *const nick, if (mucwin && (g_strcmp0(muc_status_pref, "none") != 0)) { mucwin_occupant_offline(mucwin, nick); } - prefs_free_string(muc_status_pref); + g_free(muc_status_pref); Jid *jidp = jid_create_from_bare_and_resource(room, nick); ProfPrivateWin *privwin = wins_get_private(jidp->fulljid); @@ -1076,7 +1076,7 @@ sv_ev_muc_occupant_online(const char *const room, const char *const nick, const if (mucwin && g_strcmp0(muc_status_pref, "none") != 0) { mucwin_occupant_online(mucwin, nick, role, affiliation, show, status); } - prefs_free_string(muc_status_pref); + g_free(muc_status_pref); if (mucwin) { Jid *jidp = jid_create_from_bare_and_resource(mucwin->roomjid, nick); @@ -1099,7 +1099,7 @@ sv_ev_muc_occupant_online(const char *const room, const char *const nick, const if (mucwin && (g_strcmp0(muc_status_pref, "all") == 0)) { mucwin_occupant_presence(mucwin, nick, show, status); } - prefs_free_string(muc_status_pref); + g_free(muc_status_pref); occupantswin_occupants(room); // presence unchanged, check for role/affiliation change @@ -1202,7 +1202,7 @@ sv_ev_lastactivity_response(const char *const from, const int seconds, const cha gchar *date_fmt = NULL; char *time_pref = prefs_get_string(PREF_TIME_LASTACTIVITY); date_fmt = g_date_time_format(active, time_pref); - prefs_free_string(time_pref); + g_free(time_pref); assert(date_fmt != NULL); // full jid - last activity |