From abbb54cdd6da757f9833d57126551ce934f4970d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 3 Feb 2013 01:28:50 -0500 Subject: [PATCH] Fix deprecation note for g_static_mutex_free It should point at g_mutex_clear, not g_mutex_free. https://bugzilla.gnome.org/show_bug.cgi?id=678223 --- glib/deprecated/gthread-deprecated.c | 2 +- glib/deprecated/gthread.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/deprecated/gthread-deprecated.c b/glib/deprecated/gthread-deprecated.c index f7264a459..c89d22a44 100644 --- a/glib/deprecated/gthread-deprecated.c +++ b/glib/deprecated/gthread-deprecated.c @@ -590,7 +590,7 @@ g_static_mutex_get_mutex_impl (GStaticMutex* mutex) * Calling g_static_mutex_free() on a locked mutex may * result in undefined behaviour. * - * Deprecated: 2.32: Use g_mutex_free() + * Deprecated: 2.32: Use g_mutex_clear() */ void g_static_mutex_free (GStaticMutex* mutex) diff --git a/glib/deprecated/gthread.h b/glib/deprecated/gthread.h index b7e6d93f5..462bb8fdc 100644 --- a/glib/deprecated/gthread.h +++ b/glib/deprecated/gthread.h @@ -143,7 +143,7 @@ typedef struct GLIB_DEPRECATED_IN_2_32_FOR(g_mutex_init) void g_static_mutex_init (GStaticMutex *mutex); -GLIB_DEPRECATED_IN_2_32_FOR(g_mutex_free) +GLIB_DEPRECATED_IN_2_32_FOR(g_mutex_clear) void g_static_mutex_free (GStaticMutex *mutex); GLIB_DEPRECATED_IN_2_32_FOR(GMutex) GMutex *g_static_mutex_get_mutex_impl (GStaticMutex *mutex);