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

* #6623: fixed more leaks

parent a0f4b725
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,6 @@ static gchar ** sflphone_order_history_hash_table(GHashTable *result)
gint size = 0;
gchar **ordered_list = NULL;
assert(result);
while (g_hash_table_size (result)) {
gpointer key, key_to_min, value;
......@@ -628,6 +627,7 @@ sflphone_set_transfert()
if (c) {
c->_state = CALL_STATE_TRANSFERT;
g_free(c->_trsft_to);
c->_trsft_to = g_strdup ("");
calltree_update_call (current_calls, c, NULL);
}
......@@ -642,6 +642,7 @@ sflphone_unset_transfert()
if (c) {
c->_state = CALL_STATE_CURRENT;
g_free(c->_trsft_to);
c->_trsft_to = g_strdup ("");
calltree_update_call (current_calls, c, NULL);
}
......@@ -751,14 +752,9 @@ process_dialing (callable_obj_t *c, guint keyval, gchar *key)
callable_obj_t *
sflphone_new_call()
{
callable_obj_t *c;
callable_obj_t * current_selected_call;
gchar *peer_name, *peer_number;
DEBUG ("Actions: Sflphone new call");
current_selected_call = calltab_get_selected_call (current_calls);
callable_obj_t *current_selected_call = calltab_get_selected_call (current_calls);
if ( (current_selected_call != NULL) && (current_selected_call->_confID == NULL))
sflphone_on_hold();
......@@ -767,11 +763,8 @@ sflphone_new_call()
if (calllist_get_size (current_calls) == 0)
dbus_start_tone (TRUE , (current_account_has_new_message () > 0) ? TONE_WITH_MESSAGE : TONE_WITHOUT_MESSAGE) ;
peer_number = g_strdup ("");
peer_name = g_strdup ("");
create_new_call (CALL, CALL_STATE_DIALING, "", "", peer_name, peer_number, &c);
g_free(peer_number);
g_free(peer_name);
callable_obj_t *c;
create_new_call (CALL, CALL_STATE_DIALING, "", "", "", "", &c);
c->_history_state = OUTGOING;
......
......@@ -418,7 +418,6 @@ statusbar_push_message (const gchar *left_hand_message, const gchar *right_hand_
gchar *message_to_display;
g_mutex_lock (gmutex);
// pthread_mutex_lock (&statusbar_message_mutex);
g_free (status_current_message);
// store the left hand message so that it can be reused in case of clock update
......@@ -436,7 +435,6 @@ statusbar_push_message (const gchar *left_hand_message, const gchar *right_hand_
g_free (message_to_display);
// pthread_mutex_unlock (&statusbar_message_mutex);
g_mutex_unlock (gmutex);
}
......@@ -457,10 +455,8 @@ statusbar_update_clock (gchar *msg)
}
// pthread_mutex_lock (&statusbar_message_mutex);
g_mutex_lock (gmutex);
message = g_strdup (status_current_message);
// pthread_mutex_unlock (&statusbar_message_mutex);
g_mutex_unlock (gmutex);
if (message) {
......@@ -469,8 +465,6 @@ statusbar_update_clock (gchar *msg)
}
g_free (message);
message = NULL;
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment