diff options
author | Xan Lopez <xan@igalia.com> | 2012-08-14 22:41:24 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-08-14 22:41:24 +0800 |
commit | 33f9683837f7f1130851c3f234dec00a6c1ae505 (patch) | |
tree | 4a7bd8e9c54292d54c6c6b1c10a81fa1c9c4229c /embed | |
parent | e3bacf063d583c69dbbd7a83e58bca777b8fcfde (diff) | |
download | gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.tar gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.tar.gz gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.tar.bz2 gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.tar.lz gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.tar.xz gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.tar.zst gsoc2013-epiphany-33f9683837f7f1130851c3f234dec00a6c1ae505.zip |
ephy-embed-event: some cosmetic fixes
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-event.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/embed/ephy-embed-event.c b/embed/ephy-embed-event.c index 1a931f12a..62d4435f3 100644 --- a/embed/ephy-embed-event.c +++ b/embed/ephy-embed-event.c @@ -1,7 +1,7 @@ /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * Copyright © 2000-2003 Marco Pesenti Gritti - * Copyright © 2009 Igalia S.L. + * Copyright © 2009-2012 Igalia S.L. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,12 +20,7 @@ */ #include "config.h" - #include "ephy-embed-event.h" -#include "ephy-embed-type-builtins.h" - -#include <glib.h> -#include <gtk/gtk.h> #define EPHY_EMBED_EVENT_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_EMBED_EVENT, EphyEmbedEventPrivate)) @@ -44,11 +39,8 @@ static void dispose (GObject *object) { EphyEmbedEventPrivate *priv = EPHY_EMBED_EVENT (object)->priv; - - if (priv->hit_test_result) { - g_object_unref (priv->hit_test_result); - priv->hit_test_result = NULL; - } + + g_clear_object (&priv->hit_test_result); G_OBJECT_CLASS (ephy_embed_event_parent_class)->dispose (object); } |