mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 10:46:22 +00:00
Free string after setting theme ui preference, fixed valgrind warning
This commit is contained in:
@@ -390,6 +390,7 @@ _set_string_preference(char *prefstr, preference_t pref)
|
|||||||
if (g_key_file_has_key(theme, "ui", prefstr, NULL)) {
|
if (g_key_file_has_key(theme, "ui", prefstr, NULL)) {
|
||||||
gchar *val = g_key_file_get_string(theme, "ui", prefstr, NULL);
|
gchar *val = g_key_file_get_string(theme, "ui", prefstr, NULL);
|
||||||
prefs_set_string(pref, val);
|
prefs_set_string(pref, val);
|
||||||
|
g_free(val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,14 +114,14 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
|
|||||||
g_timer_start(timer);
|
g_timer_start(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ch = ui_get_char(inp, &size, &result);
|
||||||
|
|
||||||
ui_handle_special_keys(&ch, result);
|
ui_handle_special_keys(&ch, result);
|
||||||
#ifdef HAVE_LIBOTR
|
#ifdef HAVE_LIBOTR
|
||||||
otr_poll();
|
otr_poll();
|
||||||
#endif
|
#endif
|
||||||
jabber_process_events();
|
jabber_process_events();
|
||||||
ui_update();
|
ui_update();
|
||||||
|
|
||||||
ch = ui_get_char(inp, &size, &result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inp[size++] = '\0';
|
inp[size++] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user