aboutsummaryrefslogtreecommitdiffstats
path: root/embed/find-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/find-dialog.c')
-rwxr-xr-xembed/find-dialog.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/embed/find-dialog.c b/embed/find-dialog.c
index 7dad18ddf..b46930e98 100755
--- a/embed/find-dialog.c
+++ b/embed/find-dialog.c
@@ -310,13 +310,15 @@ find_get_info (EphyDialog *dialog)
/* get the search string from the entry field */
ephy_dialog_get_value (dialog, WORD_PROP, &word);
- search_string = g_strdup(g_value_get_string (&word));
+ search_string = g_strdup (g_value_get_string (&word));
g_value_unset (&word);
/* don't do null searches */
- if (search_string && search_string[0] == '\0')
+ if (search_string == NULL || search_string[0] == '\0')
{
set_navigation_flags (find_dialog, 0);
+ g_free (search_string);
+
return;
}
@@ -383,6 +385,12 @@ find_dialog_finalize (GObject *object)
g_return_if_fail (dialog->priv != NULL);
+ if (dialog->priv->properties != NULL)
+ {
+ g_free (dialog->priv->properties->search_string);
+ g_free (dialog->priv->properties);
+ }
+
unset_old_embed (dialog);
g_free (dialog->priv);