[epiphany] Ensure startup_context is not NULL before freeing it
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Ensure startup_context is not NULL before freeing it
- Date: Mon, 27 Jun 2011 13:30:46 +0000 (UTC)
commit 74d64e0199c769bb91caa04e127fb3b0c0a639fb
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Jun 24 23:35:47 2011 +0300
Ensure startup_context is not NULL before freeing it
https://bugzilla.gnome.org/show_bug.cgi?id=622903
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 8ba4d89..ecf4d44 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]