summaryrefslogtreecommitdiffstats
path: root/lang/gjs/files/patch-gi_object.c
blob: 3589ee982d99b8aebbd2c8d6e7ac058e20d0a3e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
libxul 1.9.2.x doesn't support this yet.

http://git.gnome.org/browse/gjs/commit/?id=72bc4307860a315f9d2173d700582add938d79a0

--- gi/object.c.orig    2012-01-22 11:53:37.000000000 +0100
+++ gi/object.c 2012-01-22 11:54:37.000000000 +0100
@@ -674,7 +674,6 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(object_in
         if (unthreadsafe_template_for_constructor.gobj == NULL) {
             GParameter *params;
             int n_params;
-            GTypeQuery query;
             JSObject *old_jsobj;
 
             gtype = g_registered_type_info_get_g_type( (GIRegisteredTypeInfo*) priv->info);
@@ -711,9 +710,6 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(object_in
                 goto out;
             }
 
-            g_type_query(gtype, &query);
-            JS_updateMallocCounter(context, query.instance_size);
-
             if (G_IS_INITIALLY_UNOWNED(priv->gobj) &&
                 !g_object_is_floating(priv->gobj)) {
                 /* GtkWindow does not return a ref to caller of g_object_new.