]> jfr.im git - solanum.git/blobdiff - src/irc_dictionary.c
MyMalloc -> rb_malloc
[solanum.git] / src / irc_dictionary.c
index 1de03da818c450b9b8cbbf3569a4f99d71166d6b..7429782183a6cb05b6d62ff1fb13b4a9ab1cb8e7 100644 (file)
@@ -57,7 +57,7 @@ struct Dictionary
  */
 struct Dictionary *irc_dictionary_create(DCF compare_cb)
 {
-       struct Dictionary *dtree = (struct Dictionary *) MyMalloc(sizeof(struct Dictionary));
+       struct Dictionary *dtree = (struct Dictionary *) rb_malloc(sizeof(struct Dictionary));
 
        dtree->compare_cb = compare_cb;
 
@@ -87,7 +87,7 @@ struct Dictionary *irc_dictionary_create(DCF compare_cb)
 struct Dictionary *irc_dictionary_create_named(const char *name,
        DCF compare_cb)
 {
-       struct Dictionary *dtree = (struct Dictionary *) MyMalloc(sizeof(struct Dictionary));
+       struct Dictionary *dtree = (struct Dictionary *) rb_malloc(sizeof(struct Dictionary));
 
        dtree->compare_cb = compare_cb;
        DupString(dtree->id, name);
@@ -476,7 +476,7 @@ void irc_dictionary_destroy(struct Dictionary *dtree,
                BlockHeapFree(elem_heap, n);
        }
 
-       MyFree(dtree);
+       rb_free(dtree);
 }
 
 /*