[anjuta] language-support-js: Fix g_object_unref() of NULL object.
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] language-support-js: Fix g_object_unref() of NULL object.
- Date: Fri, 18 Jan 2013 18:21:09 +0000 (UTC)
commit f06d48b9e989cf3a43098f7aeb4e07767d05c618
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Fri Jan 18 19:20:45 2013 +0100
language-support-js: Fix g_object_unref() of NULL object.
plugins/language-support-js/plugin.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/plugins/language-support-js/plugin.c b/plugins/language-support-js/plugin.c
index 0ea97e9..653e2d2 100644
--- a/plugins/language-support-js/plugin.c
+++ b/plugins/language-support-js/plugin.c
@@ -91,11 +91,6 @@ js_support_plugin_deactivate (AnjutaPlugin *plugin)
static void
js_support_plugin_finalize (GObject *obj)
{
- JSLang *self = (JSLang*)obj;
-
- g_object_unref (self->symbol);
- self->symbol = NULL;
-
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
@@ -106,8 +101,7 @@ js_support_plugin_dispose (GObject *obj)
g_assert (self != NULL);
- g_object_unref (self->symbol);
- self->symbol = NULL;
+ g_clear_object (&self->symbol);
G_OBJECT_CLASS (parent_class)->dispose (obj);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]