aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-encoding-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-encoding-menu.c')
-rw-r--r--src/ephy-encoding-menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-encoding-menu.c b/src/ephy-encoding-menu.c
index 80dd7de4a..1d566cf67 100644
--- a/src/ephy-encoding-menu.c
+++ b/src/ephy-encoding-menu.c
@@ -318,11 +318,12 @@ ephy_encoding_menu_view_dialog_cb (GtkAction *action, EphyEncodingMenu *menu)
{
if (menu->priv->dialog == NULL)
{
+ EphyEncodingDialog **dialog = &menu->priv->dialog;
menu->priv->dialog = ephy_encoding_dialog_new
(menu->priv->window);
g_object_add_weak_pointer(G_OBJECT (menu->priv->dialog),
- (gpointer *) &menu->priv->dialog);
+ (gpointer *)dialog);
}
ephy_dialog_show (EPHY_DIALOG (menu->priv->dialog));