aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ephy-application.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ephy-application.c b/src/ephy-application.c
index 8ba4d89f3..ecf4d44ca 100644
--- a/src/ephy-application.c
+++ b/src/ephy-application.c
@@ -334,7 +334,10 @@ ephy_application_init (EphyApplication *application)
static void
ephy_application_finalize (GObject *object)
{
- ephy_application_free_startup_context (EPHY_APPLICATION (object));
+ EphyApplication *application = EPHY_APPLICATION (object);
+
+ if (application->priv->startup_context)
+ ephy_application_free_startup_context (application);
G_OBJECT_CLASS (ephy_application_parent_class)->finalize (object);
}