diff --git a/src/mm-base-call.c b/src/mm-base-call.c index e011c448..bf13bedc 100644 --- a/src/mm-base-call.c +++ b/src/mm-base-call.c @@ -766,7 +766,6 @@ static void send_dtmf_context_free (SendDtmfContext *ctx) { send_dtmf_context_clear_timeout (ctx); - g_ptr_array_foreach (ctx->dtmfs, (GFunc) g_free, NULL); g_ptr_array_free (ctx->dtmfs, TRUE); g_assert (!ctx->saved_error); g_slice_free (SendDtmfContext, ctx); diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 5cbf0836..b3c38feb 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -5895,7 +5895,7 @@ mm_dtmf_split (const gchar *dtmf) const gchar *p = dtmf; GString *cur = NULL; - array = g_ptr_array_new (); + array = g_ptr_array_new_with_free_func (g_free); while (*p) { if (*p == MM_CALL_DTMF_PAUSE_CHAR) {