]> sjero.net Git - linphone/commitdiff
fix crash in coreapi
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 22 Feb 2013 21:18:08 +0000 (22:18 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 22 Feb 2013 21:18:31 +0000 (22:18 +0100)
coreapi/linphonecore.c
gtk/main.c

index 237590473f27d638f3eedf8e5018edb718bb82cd..a33328f0319339b8a537ba880db10b56dba27a67 100644 (file)
@@ -2829,8 +2829,8 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
                        }
 #endif //BUILD_UPNP
                }
-
-               call->params = *params;
+               
+               _linphone_call_params_copy(&call->params,params);
                linphone_call_make_local_media_description(lc, call);
 
                // Video adding
index 2f34cd4d420862f93e776c4a899a5452c842d4d7..dab29bda06249637db965515693061fb99c1b09a 100644 (file)
@@ -816,7 +816,6 @@ static gboolean linphone_gtk_auto_answer(LinphoneCall *call){
        LinphoneCallState state=linphone_call_get_state(call);
        if (state==LinphoneCallIncomingReceived || state==LinphoneCallIncomingEarlyMedia){
                accept_incoming_call(call);
-               linphone_call_unref(call);
        }
        return FALSE;
 }