+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
+1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+ reported by Alexander Larsson <alla@lysator.liu.se>.
+
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.9
if (index != array->len - 1)
g_memmove (array->pdata + index, array->pdata + index + 1,
- array->len - index - 1);
+ sizeof (gpointer) * (array->len - index - 1));
array->pdata[array->len - 1] = NULL;
if (index != array->len - 1)
g_memmove (array->pdata + index, array->pdata + index + 1,
- array->len - index - 1);
+ sizeof (gpointer) * (array->len - index - 1));
array->pdata[array->len - 1] = NULL;
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
t = (gulong*) ((guchar*) mem - SIZEOF_LONG);
#ifdef ENABLE_MEM_PROFILE
- g_mutex_lock (mem_profile);
+ g_mutex_lock (mem_profile_lock);
freed_mem += *t;
- g_mutex_unlock (mem_profile);
+ g_mutex_unlock (mem_profile_lock);
#endif /* ENABLE_MEM_PROFILE */
mem = t;
#endif /* ENABLE_MEM_PROFILE || ENABLE_MEM_CHECK */
t = (gulong*) ((guchar*) mem - SIZEOF_LONG);
size = *t;
#ifdef ENABLE_MEM_PROFILE
- g_mutex_lock (mem_profile);
+ g_mutex_lock (mem_profile_lock);
freed_mem += size;
- g_mutex_unlock (mem_profile);
+ g_mutex_unlock (mem_profile_lock);
#endif /* ENABLE_MEM_PROFILE */
mem = t;
#endif /* ENABLE_MEM_PROFILE || ENABLE_MEM_CHECK */
gulong local_allocated_mem;
gulong local_freed_mem;
- g_mutex_lock (mem_profile);
+ g_mutex_lock (mem_profile_lock);
for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++)
local_allocations[i] = allocations[i];
local_allocated_mem = allocated_mem;
local_freed_mem = freed_mem;
- g_mutex_unlock (mem_profile);
+ g_mutex_unlock (mem_profile_lock);
for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++)
if (local_allocations[i] > 0)
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
t = (gulong*) ((guchar*) mem - SIZEOF_LONG);
#ifdef ENABLE_MEM_PROFILE
- g_mutex_lock (mem_profile);
+ g_mutex_lock (mem_profile_lock);
freed_mem += *t;
- g_mutex_unlock (mem_profile);
+ g_mutex_unlock (mem_profile_lock);
#endif /* ENABLE_MEM_PROFILE */
mem = t;
#endif /* ENABLE_MEM_PROFILE || ENABLE_MEM_CHECK */
t = (gulong*) ((guchar*) mem - SIZEOF_LONG);
size = *t;
#ifdef ENABLE_MEM_PROFILE
- g_mutex_lock (mem_profile);
+ g_mutex_lock (mem_profile_lock);
freed_mem += size;
- g_mutex_unlock (mem_profile);
+ g_mutex_unlock (mem_profile_lock);
#endif /* ENABLE_MEM_PROFILE */
mem = t;
#endif /* ENABLE_MEM_PROFILE || ENABLE_MEM_CHECK */
gulong local_allocated_mem;
gulong local_freed_mem;
- g_mutex_lock (mem_profile);
+ g_mutex_lock (mem_profile_lock);
for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++)
local_allocations[i] = allocations[i];
local_allocated_mem = allocated_mem;
local_freed_mem = freed_mem;
- g_mutex_unlock (mem_profile);
+ g_mutex_unlock (mem_profile_lock);
for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++)
if (local_allocations[i] > 0)