Commit e6ad7651 authored by Alexandre Savard's avatar Alexandre Savard

[#3218] Small UI fix callable_obj_free

parent 94affc53
...@@ -189,6 +189,8 @@ sflphone_ringing(callable_obj_t * c ) ...@@ -189,6 +189,8 @@ sflphone_ringing(callable_obj_t * c )
void void
sflphone_hung_up( callable_obj_t * c) sflphone_hung_up( callable_obj_t * c)
{ {
DEBUG("Actions: SFLphone hungup");
calllist_remove( current_calls, c->_callID); calllist_remove( current_calls, c->_callID);
calltree_remove_call(current_calls, c, NULL); calltree_remove_call(current_calls, c, NULL);
c->_state = CALL_STATE_DIALING; c->_state = CALL_STATE_DIALING;
...@@ -228,7 +230,7 @@ void sflphone_fill_account_list (void) { ...@@ -228,7 +230,7 @@ void sflphone_fill_account_list (void) {
if(!(*accountID)) if(!(*accountID))
DEBUG("hhhhhhhhhmmmmmmmmmmmm"); DEBUG("hhhhhhhhhmmmmmmmmmmmm");
*/ */
for (accountID = array; *accountID; accountID++) for (accountID = array; *accountID; accountID++)
{ {
account_t * a = g_new0(account_t,1); account_t * a = g_new0(account_t,1);
...@@ -321,10 +323,10 @@ void sflphone_fill_account_list (void) { ...@@ -321,10 +323,10 @@ void sflphone_fill_account_list (void) {
a->protocol_state_description = g_hash_table_lookup(details, REGISTRATION_STATE_DESCRIPTION); a->protocol_state_description = g_hash_table_lookup(details, REGISTRATION_STATE_DESCRIPTION);
} }
// Set the current account message number // Set the current account message number
current_account_set_message_number (count); current_account_set_message_number (count);
sflphone_fill_codec_list (); sflphone_fill_codec_list ();
} }
gboolean sflphone_init() { gboolean sflphone_init() {
......
...@@ -135,6 +135,8 @@ void *threaded_clock_incrementer(void *pc) { ...@@ -135,6 +135,8 @@ void *threaded_clock_incrementer(void *pc) {
while(call->clockStarted) { while(call->clockStarted) {
DEBUG("CLOCK STARTED: %d", call->clockStarted);
gchar *res; gchar *res;
int duration; int duration;
time_t start, current; time_t start, current;
...@@ -170,8 +172,6 @@ void *threaded_clock_incrementer(void *pc) { ...@@ -170,8 +172,6 @@ void *threaded_clock_incrementer(void *pc) {
calltree_update_clock(call); calltree_update_clock(call);
g_free(res);
sleep(1); sleep(1);
} }
} }
......
...@@ -145,9 +145,9 @@ call_state_cb(DBusGProxy *proxy UNUSED, const gchar* callID, const gchar* state, ...@@ -145,9 +145,9 @@ call_state_cb(DBusGProxy *proxy UNUSED, const gchar* callID, const gchar* state,
calltree_update_call(history, c, NULL); calltree_update_call(history, c, NULL);
} }
stop_notification(); stop_notification();
sflphone_hung_up(c); calltree_update_call(history, c, NULL);
calltree_update_call(history, c, NULL );
status_bar_display_account(); status_bar_display_account();
sflphone_hung_up(c);
} }
else if (strcmp(state, "UNHOLD_CURRENT") == 0) else if (strcmp(state, "UNHOLD_CURRENT") == 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment