Skip to content
Snippets Groups Projects
Commit f2840e06 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9490: cleanup

parent ff5a8f94
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,7 @@ void account_list_free_elm(gpointer elm, gpointer data UNUSED) ...@@ -191,6 +191,7 @@ void account_list_free_elm(gpointer elm, gpointer data UNUSED)
{ {
account_t *a = elm; account_t *a = elm;
g_free(a->accountID); g_free(a->accountID);
a->accountID = NULL;
g_free(a); g_free(a);
} }
...@@ -297,7 +298,7 @@ gboolean current_account_has_new_message(void) ...@@ -297,7 +298,7 @@ gboolean current_account_has_new_message(void)
gboolean account_is_IP2IP(const account_t *account) gboolean account_is_IP2IP(const account_t *account)
{ {
g_assert(account); g_assert(account);
return utf8_case_equal(account->accountID, IP2IP_PROFILE); return g_strcmp0(account->accountID, IP2IP_PROFILE);
} }
static gboolean is_type(const account_t *account, const gchar *type) static gboolean is_type(const account_t *account, const gchar *type)
......
...@@ -204,7 +204,7 @@ void codec_list_move_codec_down(guint codec_index, GQueue **q) ...@@ -204,7 +204,7 @@ void codec_list_move_codec_down(guint codec_index, GQueue **q)
} }
void codec_list_update_to_daemon(account_t *acc) void codec_list_update_to_daemon(const account_t *acc)
{ {
// Length of the codec list // Length of the codec list
int length = g_queue_get_length(acc->codecs); int length = g_queue_get_length(acc->codecs);
......
...@@ -127,7 +127,7 @@ void codec_list_move_codec_down (guint index, GQueue **q); ...@@ -127,7 +127,7 @@ void codec_list_move_codec_down (guint index, GQueue **q);
/** /**
* Notify modifications on codecs to the server * Notify modifications on codecs to the server
*/ */
void codec_list_update_to_daemon (account_t *acc); void codec_list_update_to_daemon (const account_t *acc);
codec_t* codec_list_get_by_payload (gconstpointer payload, GQueue *q); codec_t* codec_list_get_by_payload (gconstpointer payload, GQueue *q);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment