[kdbus] KDBUS_ITEM_PAYLOAD_OFF items are (once again) relative to msg header
[platform/upstream/glib.git] / tests / gobject / ifaceinit.c
index eaa6d35..55ef355 100644 (file)
@@ -12,9 +12,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #undef G_LOG_DOMAIN
@@ -160,7 +158,7 @@ struct _TestObjectClass
 } G_STMT_END
 
 #define ADD_IFACE(n)  G_STMT_START {                           \
-  static GInterfaceInfo iface_info = {                         \
+  GInterfaceInfo iface_info = {                                \
     (GInterfaceInitFunc)test_object_test_iface##n##_init,      \
     NULL, NULL };                                              \
                                                                \
@@ -381,7 +379,6 @@ main (int   argc,
   g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
                          G_LOG_LEVEL_WARNING |
                          G_LOG_LEVEL_CRITICAL);
-  g_type_init ();
 
   /* We force the interfaces to be registered in a different order
    * than we add them, so our logic doesn't always deal with interfaces
@@ -418,5 +415,7 @@ main (int   argc,
   iface = TEST_IFACE6_GET_CLASS (object);
   g_assert (iface && iface->val == 0x60006 && iface->base_val == 0x660066);
 
+  g_type_class_unref (object_class);
+
   return 0;
 }