Ejemplo n.º 1
0
static void _solver3d_dealloc (AranSolver3d *solver)
{
  g_chunk_free (solver, aran_solver3d_mem_chunk);

  aran_solver3d_instances_count --;

  if (aran_solver3d_instances_count == 0)
    aran_solver3d_finalize ();
}
Ejemplo n.º 2
0
Archivo: ghook.c Proyecto: 0x0all/ROOT
void
g_hook_free (GHookList *hook_list,
	     GHook     *hook)
{
  g_return_if_fail (hook_list != NULL);
  g_return_if_fail (hook_list->is_setup);
  g_return_if_fail (hook != NULL);
  g_return_if_fail (G_HOOK_IS_UNLINKED (hook));
  g_return_if_fail (!G_HOOK_IN_CALL (hook));

  hook_list->finalize_hook (hook_list, hook);
  g_chunk_free (hook, hook_list->hook_memchunk);
}
Ejemplo n.º 3
0
/**
 * vsg_matrix3@t@_free:
 * @mat: a #VsgMatrix3@t@
 *
 * Deallocates @mat.
 */
void vsg_matrix3@t@_free (VsgMatrix3@t@ *mat)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (mat != NULL);
#endif

  g_chunk_free (mat, vsg_matrix3@t@_mem_chunk);

  vsg_matrix3@t@_instances_count --;

  if (vsg_matrix3@t@_instances_count == 0)
    vsg_matrix3@t@_finalize ();
}
Ejemplo n.º 4
0
/**
 * vsg_vector3@t@_free:
 * @vec: instance to deallocate.
 *
 * Frees a #VsgVector3@t@ instance previously allocated with
 * vsg_vector3@t@_new().
 */
void vsg_vector3@t@_free (VsgVector3@t@ *vec)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (vec != NULL);
#endif

  g_chunk_free (vec, vsg_vector3@t@_mem_chunk);

  vsg_vector3@t@_instances_count --;

  if (vsg_vector3@t@_instances_count == 0)
    vsg_vector3@t@_finalize ();
}
Ejemplo n.º 5
0
Archivo: .c Proyecto: pigay/vsg
/**
 * vsg_quaternion@t@_free:
 * @quat: #VsgQuaternion@t@ instance to deallocate.
 *
 * Frees a #VsgQuaternion@t@ instance previously allocated with
 * vsg_quaternion@t@_new().
 */
void vsg_quaternion@t@_free (VsgQuaternion@t@ *quat)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (quat != NULL);
#endif

#if _USE_G_SLICES
  g_slice_free (VsgQuaternion@t@, quat);
#else
  g_chunk_free (quat, vsg_quaternion@t@_mem_chunk);

  vsg_quaternion@t@_instances_count --;

  if (vsg_quaternion@t@_instances_count == 0)
    vsg_quaternion@t@_finalize ();
#endif /* _USE_G_SLICES */
}
Ejemplo n.º 6
0
Archivo: .c Proyecto: pigay/vsg
/**
 * vsg_vector3@t@_free:
 * @vec: instance to deallocate.
 *
 * Frees a #VsgVector3@t@ instance previously allocated with
 * vsg_vector3@t@_new().
 */
void vsg_vector3@t@_free (VsgVector3@t@ *vec)
{
#ifdef VSG_CHECK_PARAMS
  g_return_if_fail (vec != NULL);
#endif

#if _USE_G_SLICES
  g_slice_free (VsgVector3@t@, vec);
#else
  g_chunk_free (vec, vsg_vector3@t@_mem_chunk);

  vsg_vector3@t@_instances_count --;

  if (vsg_vector3@t@_instances_count == 0)
    vsg_vector3@t@_finalize ();
#endif /* _USE_G_SLICES */
}