Ticket #6383: article-actions.c.diff

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

Proposed patch

Line 
1*** article-actions.c.orig      Fri Nov 11 14:02:43 2005
2--- article-actions.c   Thu Jan  5 12:43:29 2006
3***************
4*** 252,258 ****
5        g_return_val_if_fail (articles_are_valid(articles, qty), FALSE);
6 
7        /* copy anything that's already cached, and make a list of those not cached */
8!       missing = g_newa (MessageIdentifier*, qty);
9        missing_qty = 0;
10        for (i=0; i<qty; ++i)
11        {
12--- 252,258 ----
13        g_return_val_if_fail (articles_are_valid(articles, qty), FALSE);
14 
15        /* copy anything that's already cached, and make a list of those not cached */
16!       missing = g_new (MessageIdentifier*, qty);
17        missing_qty = 0;
18        for (i=0; i<qty; ++i)
19        {
20***************
21*** 289,294 ****
22--- 289,295 ----
23        /* cleanup */
24        for (i=0; i<missing_qty; ++i)
25                g_object_unref (missing[i]);
26+       g_free (missing);
27        debug_exit ("article_copy_articles_to_folder");
28        return TRUE;
29  }
30***************
31*** 428,434 ****
32        {
33                int i;
34                Group * group;
35!               const PString ** ids = g_newa (const PString*, article_qty);
36                MessageIdentifier ** mids;
37 
38                /* remove the headers */
39--- 429,435 ----
40        {
41                int i;
42                Group * group;
43!               const PString ** ids = g_new (const PString*, article_qty);
44                MessageIdentifier ** mids;
45 
46                /* remove the headers */
47***************
48*** 447,452 ****
49--- 448,454 ----
50                for (i=0; i<article_qty; ++i)
51                        g_object_unref (mids[i]);
52                g_free (mids);
53+               g_free (ids);
54        }
55 
56        debug_exit ("article_action_delete_articles");