Ticket #6383: article-actions.c.2.diff

File article-actions.c.2.diff, 1.0 KB (added by LuisOrtiz@…, 19 years ago)

Proposed patch in unified diff format

  • pan/article-actions.c

    old new  
    252252        g_return_val_if_fail (articles_are_valid(articles, qty), FALSE);
    253253
    254254        /* copy anything that's already cached, and make a list of those not cached */
    255         missing = g_newa (MessageIdentifier*, qty);
     255        missing = g_new (MessageIdentifier*, qty);
    256256        missing_qty = 0;
    257257        for (i=0; i<qty; ++i)
    258258        {
     
    289289        /* cleanup */
    290290        for (i=0; i<missing_qty; ++i)
    291291                g_object_unref (missing[i]);
     292        g_free (missing);
    292293        debug_exit ("article_copy_articles_to_folder");
    293294        return TRUE;
    294295}
     
    428429        {
    429430                int i;
    430431                Group * group;
    431                 const PString ** ids = g_newa (const PString*, article_qty);
     432                const PString ** ids = g_new (const PString*, article_qty);
    432433                MessageIdentifier ** mids;
    433434
    434435                /* remove the headers */
     
    447448                for (i=0; i<article_qty; ++i)
    448449                        g_object_unref (mids[i]);
    449450                g_free (mids);
     451                g_free (ids);
    450452        }
    451453
    452454        debug_exit ("article_action_delete_articles");