Commits

shuerhaaken committed 0335958

add string management for USER LABELS functions

Comments (0)

Files changed (1)

bindings/c/taginfo_c.cc

     int j = 0;
     for(StringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
         labels[j] = ::strdup( (*it).toCString(false));
+        if(stringManagementEnabled)
+            strings.prepend(labels[j]);
         j++;
     }
     *labels_length = len;
     int j = 0;
     for(StringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
         labels[j] = ::strdup( (*it).toCString(false));
+        if(stringManagementEnabled)
+            strings.prepend(labels[j]);
         j++;
     }
     *labels_length = len;
     int j = 0;
     for(StringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
         labels[j] = ::strdup( (*it).toCString(false));
+        if(stringManagementEnabled)
+            strings.prepend(labels[j]);
         j++;
     }
     *labels_length = len;