aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c5
2 files changed, 10 insertions, 0 deletions
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 <lewing@ximian.com>
+
+ * 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 <jpr@ximian.com>
* 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. */