summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2015-01-16 18:54:31 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2015-01-16 18:54:31 +0100
commit3cceb501d225b314a4f3188c32bd630cf306cd00 (patch)
treed29ddbb54a4974d9976b51fa0d06715288d60c42
parent4b9f0f2d695d0e57a6362b7e5d264f5cccd5e8ad (diff)
downloadkiro-3cceb501d225b314a4f3188c32bd630cf306cd00.tar.gz
kiro-3cceb501d225b314a4f3188c32bd630cf306cd00.tar.bz2
kiro-3cceb501d225b314a4f3188c32bd630cf306cd00.tar.xz
kiro-3cceb501d225b314a4f3188c32bd630cf306cd00.zip
Fixed some crashes on exit in tests
-rw-r--r--test/test-client-bandwidth.c3
-rw-r--r--test/test-client.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/test-client-bandwidth.c b/test/test-client-bandwidth.c
index cb05473..7e3cf8e 100644
--- a/test/test-client-bandwidth.c
+++ b/test/test-client-bandwidth.c
@@ -41,8 +41,9 @@ while (1) {
printf ("Throughput: %.2fGbyte/s\n",((size * 500) / elapsed)/(1024*1024*1024));
}
g_timer_stop (timer);
- kiro_client_free (client);
+ kiro_trb_purge (trb, FALSE);
kiro_trb_free (trb);
+ kiro_client_free (client);
return 0;
}
diff --git a/test/test-client.c b/test/test-client.c
index 4cfc842..7240ab1 100644
--- a/test/test-client.c
+++ b/test/test-client.c
@@ -89,8 +89,9 @@ main ( int argc, char *argv[] )
render (data_sf);
}
- kiro_client_free (client);
+ kiro_trb_purge (trb, FALSE);
kiro_trb_free (trb);
+ kiro_client_free (client);
return 0;
}