Skip to content
Browse files

Add taglib_free function to C binding

  • Loading branch information...
1 parent fb2decb commit 22b57f44636024839d34cdf7bd7e93705306d864 @jpf91 jpf91 committed Aug 5, 2011
Showing with 10 additions and 0 deletions.
  1. +5 −0 bindings/c/tag_c.cpp
  2. +5 −0 bindings/c/tag_c.h
View
5 bindings/c/tag_c.cpp
@@ -58,6 +58,11 @@ void taglib_set_string_management_enabled(BOOL management)
stringManagementEnabled = bool(management);
}
+void taglib_free(void* pointer)
+{
+ free(pointer);
+}
+
////////////////////////////////////////////////////////////////////////////////
// TagLib::File wrapper
////////////////////////////////////////////////////////////////////////////////
View
5 bindings/c/tag_c.h
@@ -79,6 +79,11 @@ TAGLIB_C_EXPORT void taglib_set_strings_unicode(BOOL unicode);
*/
TAGLIB_C_EXPORT void taglib_set_string_management_enabled(BOOL management);
+/*!
+ * Explicitly free a string returned from TagLib
+ */
+TAGLIB_C_EXPORT void taglib_free(void* pointer);
+
/*******************************************************************************
* File API
******************************************************************************/

0 comments on commit 22b57f4

Please sign in to comment.
Something went wrong with that request. Please try again.