diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-06-25 04:35:47 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2011-06-27 21:29:46 +0800 |
commit | 74d64e0199c769bb91caa04e127fb3b0c0a639fb (patch) | |
tree | 8806de5980e34c45e22d32beeb6ae48d02f7feb3 | |
parent | d40bac577b628a3db8ef90f8a862b80e8cb729c2 (diff) | |
download | gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.tar gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.tar.gz gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.tar.bz2 gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.tar.lz gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.tar.xz gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.tar.zst gsoc2013-epiphany-74d64e0199c769bb91caa04e127fb3b0c0a639fb.zip |
Ensure startup_context is not NULL before freeing it
https://bugzilla.gnome.org/show_bug.cgi?id=622903
-rw-r--r-- | src/ephy-application.c | 5 |
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); } |