diff options
author | Larry Ewing <lewing@ximian.com> | 2001-09-13 16:04:16 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-09-13 16:04:16 +0800 |
commit | 638b60e50de5157015fa6bfb1db56ebf220e41a1 (patch) | |
tree | 7a26f82cd0e46bad0346d7ebc35db74f584098f8 /composer/e-msg-composer.c | |
parent | 99bd657dbdae848d4a4206cacb19a784943d4360 (diff) | |
download | gsoc2013-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
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |