]> sjero.net Git - linphone/blobdiff - gtk/incall_view.c
Fix bug report
[linphone] / gtk / incall_view.c
index 5e13f2602e340d9c90eaedad7990e206438cbe14..da954a45b84c3e19c12de2eee419dcbc273880ac 100644 (file)
@@ -741,11 +741,12 @@ static gboolean in_call_view_terminated(LinphoneCall *call){
 
 void linphone_gtk_in_call_view_terminate(LinphoneCall *call, const char *error_msg){
        GtkWidget *callview=(GtkWidget*)linphone_call_get_user_pointer(call);
+       if(callview==NULL) return;
        GtkWidget *status=linphone_gtk_get_widget(callview,"in_call_status");
        guint taskid=GPOINTER_TO_INT(g_object_get_data(G_OBJECT(callview),"taskid"));
        gboolean in_conf=linphone_call_params_local_conference_mode(linphone_call_get_current_params(call));
 
-       if ((callview==NULL) || (status==NULL)) return;
+       if (status==NULL) return;
        if (error_msg==NULL)
                gtk_label_set_markup(GTK_LABEL(status),_("<b>Call ended.</b>"));
        else{