aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-09-13 16:04:16 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-09-13 16:04:16 +0800
commit638b60e50de5157015fa6bfb1db56ebf220e41a1 (patch)
tree7a26f82cd0e46bad0346d7ebc35db74f584098f8
parent99bd657dbdae848d4a4206cacb19a784943d4360 (diff)
downloadgsoc2013-evolution-638b60e50de5157015fa6bfb1db56ebf220e41a1.tar.gz
gsoc2013-evolution-638b60e50de5157015fa6bfb1db56ebf220e41a1.tar.zst
gsoc2013-evolution-638b60e50de5157015fa6bfb1db56ebf220e41a1.zip
free the text values we get from the property bag and release the property
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. svn path=/trunk/; revision=12794
-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. */