~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to drivers/cdmamodem/voicecall.c

  • Committer: Kalle Valo
  • Date: 2011-02-21 07:46:07 UTC
  • mfrom: (2738.1.2125)
  • Revision ID: kalle.valo@canonical.com-20110221074607-u4rocuj2p75kpht9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        struct voicecall_data *vd = ofono_cdma_voicecall_get_data(vc);
55
55
        struct cb_data *cbd = cb_data_new(cb, data);
56
56
 
57
 
        if (cbd == NULL)
58
 
                goto error;
59
 
 
60
57
        cbd->user = vc;
61
58
 
62
59
        if (g_at_chat_send(vd->chat, cmd, none_prefix,
63
60
                                result_cb, cbd, g_free) > 0)
64
61
                return;
65
62
 
66
 
error:
67
63
        g_free(cbd);
68
64
 
69
65
        CALLBACK_WITH_FAILURE(cb, data);