diff --git a/sflphone-client-gnome/src/actions.c b/sflphone-client-gnome/src/actions.c index 62457c518ba4016ab99d59e7f45f8e3f85ef154b..793c506fa2efeb0198944daf43f7cdd320b112b0 100644 --- a/sflphone-client-gnome/src/actions.c +++ b/sflphone-client-gnome/src/actions.c @@ -770,6 +770,8 @@ sflphone_new_call() 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); c->_history_state = OUTGOING; diff --git a/sflphone-client-gnome/src/uimanager.c b/sflphone-client-gnome/src/uimanager.c index afb9e8301645ed0838d061e0660bd9989937a4e9..32a6c6a844d2b84c8e9d739d790d6be71207b65a 100644 --- a/sflphone-client-gnome/src/uimanager.c +++ b/sflphone-client-gnome/src/uimanager.c @@ -1017,6 +1017,8 @@ call_mailbox_cb (void) create_new_call (CALL, CALL_STATE_DIALING, "", account_id, _ ("Voicemail"), to, &mailbox_call); + g_free(to); + g_free(account_id); DEBUG ("TO : %s" , mailbox_call->_peer_number); calllist_add_call (current_calls, mailbox_call); calltree_add_call (current_calls, mailbox_call, NULL); @@ -1678,8 +1680,8 @@ ok_cb (GtkWidget *widget UNUSED, gpointer userdata) original = (callable_obj_t*) userdata; // Create the new call - create_new_call (CALL, CALL_STATE_DIALING, "", g_strdup (original->_accountID), - original->_peer_name, g_strdup (new_number), &modified_call); + create_new_call (CALL, CALL_STATE_DIALING, "", original->_accountID, + original->_peer_name, new_number, &modified_call); // Update the internal data structure and the GUI calllist_add_call (current_calls, modified_call); @@ -1724,7 +1726,7 @@ show_edit_number (callable_obj_t *call) #endif if (call) - gtk_entry_set_text (GTK_ENTRY (editable_num), g_strdup (call->_peer_number)); + gtk_entry_set_text (GTK_ENTRY (editable_num), call->_peer_number); else ERROR ("This a bug, the call should be defined. menus.c line 1051");