From 638b60e50de5157015fa6bfb1db56ebf220e41a1 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 13 Sep 2001 08:04:16 +0000 Subject: free the text values we get from the property bag and release the property 2001-09-13 Larry Ewing * e-msg-composer.c (map_default_cb): free the text values we get from the property bag and release the property bag properly. svn path=/trunk/; revision=12794 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 661ce24378..41b01edab5 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2001-09-13 Larry Ewing + + * e-msg-composer.c (map_default_cb): free the text values we get + from the property bag and release the property bag properly. + 2001-09-12 JP Rosevear * evolution-composer.c (corba_recipientlist_to_destv): null diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 1ffade52be..62235127a7 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2267,11 +2267,14 @@ map_default_cb (EMsgComposer *composer, gpointer user_data) cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (to)); pb = bonobo_control_frame_get_control_property_bag (cf, NULL); text = bonobo_property_bag_client_get_value_string (pb, "text", NULL); + bonobo_object_release_unref (pb, NULL); if (!text || text[0] == '\0') { bonobo_control_frame_focus_child (cf, GTK_DIR_TAB_FORWARD); + g_free (text); return; } + g_free (text); /* If not, check the subject field */ @@ -2282,8 +2285,10 @@ map_default_cb (EMsgComposer *composer, gpointer user_data) widget = e_msg_composer_hdrs_get_subject_entry (E_MSG_COMPOSER_HDRS (composer->hdrs)); gtk_widget_grab_focus (GTK_WIDGET (E_ENTRY (widget)->canvas)); + g_free (text); return; } + g_free (text); /* Jump to the editor as a last resort. */ -- cgit