Re: [evolution] Memory leaks
"P Chenthill" <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <[email protected]> |
Calendar part looks good to commit. Please commit to gnome-2-14 branch and cvs HEAD. thanks, Chenthill. On Mon, 2006-03-27 at 13:26 +0000, Chris Heath wrote: > Here is a patch for memory leaks I found in evolution. Please review > and apply. >=20 >=20 > Index: addressbook/ChangeLog > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v > retrieving revision 1.2064 > diff -u -p -r1.2064 ChangeLog > --- addressbook/ChangeLog 10 Mar 2006 07:28:56 -0000 1.2064 > +++ addressbook/ChangeLog 27 Mar 2006 12:52:23 -0000 > @@ -1,3 +1,9 @@ > +2006-03-26 Chris Heath <[email protected]> > + > + * gui/merging/eab-contact-merging.c (cancelit): Fix memory leak > + * gui/widgets/eab-popup-control.c (eab_popup_control_set_free_form): Di= tto > + * gui/contact-editor/e-contact-quick-add.c (quick_add_merge_contact): D= itto > + > 2006-03-10 Devashish Sharma <[email protected]> > =20 > * gui/component/ldap-config.glade : ldap port numbers > Index: addressbook/gui/contact-editor/e-contact-quick-add.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/e-contact-q= uick-add.c,v > retrieving revision 1.39 > diff -u -p -r1.39 e-contact-quick-add.c > --- addressbook/gui/contact-editor/e-contact-quick-add.c 23 Jan 2006 11:5= 5:06 -0000 1.39 > +++ addressbook/gui/contact-editor/e-contact-quick-add.c 27 Mar 2006 12:5= 2:24 -0000 > @@ -138,7 +138,6 @@ merge_cb (EBook *book, EBookStatus statu > static void > quick_add_merge_contact (QuickAdd *qa) > { > - quick_add_ref (qa); > addressbook_load (qa->book, merge_cb, qa); > } > =20 > Index: addressbook/gui/merging/eab-contact-merging.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/addressbook/gui/merging/eab-contact-mergin= g.c,v > retrieving revision 1.7 > diff -u -p -r1.7 eab-contact-merging.c > --- addressbook/gui/merging/eab-contact-merging.c 26 Nov 2005 01:51:38 -0= 000 1.7 > +++ addressbook/gui/merging/eab-contact-merging.c 27 Mar 2006 12:52:24 -0= 000 > @@ -123,13 +123,10 @@ doit (EContactMergingLookup *lookup) > static void > cancelit (EContactMergingLookup *lookup) > { > - if (lookup->op =3D=3D E_CONTACT_MERGING_ADD) { > - if (lookup->id_cb) > - final_id_cb (lookup->book, E_BOOK_ERROR_CANCELLED, NULL, lookup); > - } else if (lookup->op =3D=3D E_CONTACT_MERGING_COMMIT) { > - if (lookup->cb) > - final_cb (lookup->book, E_BOOK_ERROR_CANCELLED, lookup); > - } > + if (lookup->op =3D=3D E_CONTACT_MERGING_ADD) > + final_id_cb (lookup->book, E_BOOK_ERROR_CANCELLED, NULL, lookup); > + else if (lookup->op =3D=3D E_CONTACT_MERGING_COMMIT) > + final_cb (lookup->book, E_BOOK_ERROR_CANCELLED, lookup); > } > =20 > static void > Index: addressbook/gui/widgets/eab-popup-control.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/eab-popup-control.= c,v > retrieving revision 1.16 > diff -u -p -r1.16 eab-popup-control.c > --- addressbook/gui/widgets/eab-popup-control.c 27 Jan 2006 15:41:52 -000= 0 1.16 > +++ addressbook/gui/widgets/eab-popup-control.c 27 Mar 2006 12:52:24 -000= 0 > @@ -208,6 +208,8 @@ eab_popup_control_set_free_form (EABPopu > gchar *email =3D g_strndup (lt+1, gt-lt-1); > eab_popup_control_set_name (pop, name); > eab_popup_control_set_email (pop, email); > + g_free(name); > + g_free(email); > =20 > return TRUE; > } > Index: e-util/ChangeLog > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v > retrieving revision 1.587 > diff -u -p -r1.587 ChangeLog > --- e-util/ChangeLog 12 Feb 2006 23:15:22 -0000 1.587 > +++ e-util/ChangeLog 27 Mar 2006 12:52:26 -0000 > @@ -1,3 +1,7 @@ > +2006-03-26 Chris Heath <[email protected]> > + > + * e-plugin.c (ep_construct): Fix memory leak > + > 2006-02-12 Karsten Br=C3=A4ckelmann <[email protected]> > =20 > * e-error.c (e_error_newv):=20 > Index: e-util/e-plugin.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/e-util/e-plugin.c,v > retrieving revision 1.22 > diff -u -p -r1.22 e-plugin.c > --- e-util/e-plugin.c 8 Feb 2006 11:43:02 -0000 1.22 > +++ e-util/e-plugin.c 27 Mar 2006 12:52:27 -0000 > @@ -188,6 +188,9 @@ ep_construct(EPlugin *ep, xmlNodePtr roo > oldclass =3D class; > l =3D NULL; > } > + else { > + g_free(class); > + } > l =3D g_slist_prepend(l, ep); > g_hash_table_insert(ep_plugins_pending_hooks, oldclass, l); > ep->hooks_pending =3D g_slist_prepend(ep->hooks_pending, node); > Index: mail/ChangeLog > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/mail/ChangeLog,v > retrieving revision 1.3823 > diff -u -p -r1.3823 ChangeLog > --- mail/ChangeLog 25 Mar 2006 17:09:58 -0000 1.3823 > +++ mail/ChangeLog 27 Mar 2006 12:52:32 -0000 > @@ -1,3 +1,7 @@ > +2006-03-26 Chris Heath <[email protected]> > + > + * message-list.c (message_list_finalise): Fix memory leak > + > 2006-03-25 Rajeev ramanathan <[email protected]> > =20 > **Fixes #329585 > Index: mail/message-list.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/mail/message-list.c,v > retrieving revision 1.424 > diff -u -p -r1.424 message-list.c > --- mail/message-list.c 10 Feb 2006 22:28:01 -0000 1.424 > +++ mail/message-list.c 27 Mar 2006 12:52:33 -0000 > @@ -1944,6 +1944,7 @@ message_list_finalise (GObject *object) > message_list->hidden_pool =3D NULL; > } > =20 > + g_free(message_list->search); > g_free(message_list->frozen_search); > g_free(message_list->cursor_uid); > =20 > Index: plugins/itip-formatter/ChangeLog > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/plugins/itip-formatter/ChangeLog,v > retrieving revision 1.74 > diff -u -p -r1.74 ChangeLog > --- plugins/itip-formatter/ChangeLog 14 Feb 2006 13:33:34 -0000 1.74 > +++ plugins/itip-formatter/ChangeLog 27 Mar 2006 12:52:34 -0000 > @@ -1,3 +1,7 @@ > +2006-03-26 Chris Heath <[email protected]> > + > + * itip-view.c (itip_view_destroy): Fix memory leak > + > 2006-02-14 Veerapuram Varadhan <[email protected]> > =20 > * itip-formatter.c (itip_formatter_page_factory): A typo fix from > Index: plugins/itip-formatter/itip-view.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/gnome/evolution/plugins/itip-formatter/itip-view.c,v > retrieving revision 1.24 > diff -u -p -r1.24 itip-view.c > --- plugins/itip-formatter/itip-view.c 27 Jan 2006 16:33:57 -0000 1.24 > +++ plugins/itip-formatter/itip-view.c 27 Mar 2006 12:52:34 -0000 > @@ -756,11 +756,13 @@ itip_view_destroy (GtkObject *object)=20 > g_free (priv->sentby); > g_free (priv->delegator); > g_free (priv->attendee); > + g_free (priv->summary); > g_free (priv->location); > g_free (priv->status); > g_free (priv->comment); > g_free (priv->start_tm); > g_free (priv->end_tm); > + g_free (priv->description); > =20 > itip_view_clear_upper_info_items (view); > itip_view_clear_lower_info_items (view); >=20 >=20 > _______________________________________________ > Evolution-patches mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/evolution-patches _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches