about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-07-31 02:03:22 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2013-07-31 02:03:22 +0300
commit7b37f2ace7536ae12f1726819cb0b6224232361c (patch)
tree07ca3860434df58291183a9728fc3eafa19def00
parentf2638e001aef47c04168784e6f45af7264bcd309 (diff)
downloadprofani-tty-7b37f2ace7536ae12f1726819cb0b6224232361c.tar.gz
separate glib allocator and stdlib malloc/free
Memory allocated by glib should be freed by g_free. Probably g_free
calls stdlib free, but in order to avoid portability issues better use
g_free as described in glib documentation.
-rw-r--r--src/jid.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jid.c b/src/jid.c
index 81f51745..b236c164 100644
--- a/src/jid.c
+++ b/src/jid.c
@@ -108,12 +108,12 @@ void
 jid_destroy(Jid *jid)
 {
     if (jid != NULL) {
-        FREE_SET_NULL(jid->str);
-        FREE_SET_NULL(jid->localpart);
-        FREE_SET_NULL(jid->domainpart);
-        FREE_SET_NULL(jid->resourcepart);
-        FREE_SET_NULL(jid->barejid);
-        FREE_SET_NULL(jid->fulljid);
+        GFREE_SET_NULL(jid->str);
+        GFREE_SET_NULL(jid->localpart);
+        GFREE_SET_NULL(jid->domainpart);
+        GFREE_SET_NULL(jid->resourcepart);
+        GFREE_SET_NULL(jid->barejid);
+        GFREE_SET_NULL(jid->fulljid);
         FREE_SET_NULL(jid);
     }
 }
iv>
b06433bc ^

582f3519 ^
b06433bc ^
3edc9f86 ^
b06433bc ^
7582555b ^
84c49ab7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23