[libgfbgraph] simple-authorizer: Clear GMutex on the instance finalization



commit f5a3946b69233ca38859e978f22049a9154aab32
Author: Leesoo Ahn <yisooan fedoraproject org>
Date:   Sat Oct 26 16:14:55 2019 +0900

    simple-authorizer: Clear GMutex on the instance finalization
    
    GMutex should be cleared when it is no longer needed.

 gfbgraph/gfbgraph-simple-authorizer.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gfbgraph/gfbgraph-simple-authorizer.c b/gfbgraph/gfbgraph-simple-authorizer.c
index 6e0647d..1f4d6e9 100644
--- a/gfbgraph/gfbgraph-simple-authorizer.c
+++ b/gfbgraph/gfbgraph-simple-authorizer.c
@@ -104,6 +104,7 @@ gfbgraph_simple_authorizer_finalize (GObject *obj)
         priv = GFBGRAPH_SIMPLE_AUTHORIZER_GET_PRIVATE (obj);
 
         g_free (priv->access_token);
+        g_mutex_clear (&priv->mutex);
 
         G_OBJECT_CLASS(parent_class)->finalize (obj);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]