summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5ad9531)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@120
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
- * Remove the entry pointed by the cursor, for use in the middle of a foreach
+ * Remove (free) the entry pointed by the cursor, for use in the middle of a foreach
*/
void gras_dynar_cursor_rm(gras_dynar_t * dynar,
int * const cursor) {
*/
void gras_dynar_cursor_rm(gras_dynar_t * dynar,
int * const cursor) {
-
- gras_dynar_remove_at(dynar,(*cursor)--,NULL);
+ void *dst;
+
+ gras_dynar_remove_at(dynar,(*cursor)--,&dst);
+ if (dynar->free)
+ (dynar->free)(dst);