summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gobject/gobjectmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 295b3d1..e965379 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -1993,9 +1993,12 @@ create_signal (GType instance_type, const gchar *signal_name, PyObject *tuple)
static gboolean
override_signal(GType instance_type, const gchar *signal_name)
{
+ GObjectClass *oclass;
guint signal_id;
+ oclass = g_type_class_ref(instance_type);
signal_id = g_signal_lookup(signal_name, instance_type);
+ g_type_class_unref(oclass);
if (!signal_id) {
gchar buf[128];