Permalink
Browse files

Properly free memory for list commands.

  • Loading branch information...
1 parent a43d8e2 commit a72016a0f0f9ec2541ffe939034f3029322116c0 @rafl committed Jul 17, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 Dispatcher.xs
View
@@ -520,6 +520,8 @@ spd_list_modules (connection)
mXPUSHs (newSVpv (*i, 0));
}
+ free (modules);
+
void
spd_list_voices (connection)
SPDConnection *connection
@@ -535,6 +537,8 @@ spd_list_voices (connection)
mXPUSHs (newSVpv (*i, 0));
}
+ free (voices);
+
void
spd_list_synthesis_voices (connection)
SPDConnection *connection
@@ -556,4 +560,8 @@ spd_list_synthesis_voices (connection)
}
mXPUSHs (newRV_noinc ((SV *)voice));
+
+ free (*i);
}
+
+ free (voices);

0 comments on commit a72016a

Please sign in to comment.