X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/104db8990fcd552633e6f08ccd9568f26299d0cb..5ee23970780a802b53a76ca272464a462223e7e8:/src/xbt/xbt_os_synchro.c diff --git a/src/xbt/xbt_os_synchro.c b/src/xbt/xbt_os_synchro.c index 52b1762a1c..22a4908db4 100644 --- a/src/xbt/xbt_os_synchro.c +++ b/src/xbt/xbt_os_synchro.c @@ -39,7 +39,7 @@ void xbt_mutex_release(xbt_mutex_t mutex) void xbt_mutex_destroy(xbt_mutex_t mutex) { - SIMIX_mutex_destroy((smx_mutex_t) mutex); + SIMIX_mutex_unref((smx_mutex_t) mutex); } /***** condition related functions *****/ @@ -70,7 +70,7 @@ void xbt_cond_broadcast(xbt_cond_t cond) void xbt_cond_destroy(xbt_cond_t cond) { - SIMIX_cond_destroy((smx_cond_t) cond); + SIMIX_cond_unref((smx_cond_t) cond); } /***** barrier related functions *****/