summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTORRI Vincent <torri@doursse.(none)>2006-05-01 23:45:00 +0200
committerTORRI Vincent <torri@doursse.(none)>2006-05-01 23:45:00 +0200
commit9b31c8353e11c4435045e5749b629f81c0d6a8bb (patch)
treea934457bfb2f6ffe8102acf38317b0e955d07b32 /tests
parent49361ce98be74eb66766175e93565f106ec2a8c2 (diff)
better leak fix in non shm mode
Diffstat (limited to 'tests')
-rw-r--r--tests/lissajoux.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lissajoux.c b/tests/lissajoux.c
index 49942ca..f8c8e91 100644
--- a/tests/lissajoux.c
+++ b/tests/lissajoux.c
@@ -110,7 +110,7 @@ step (Data *datap)
loop_count++;
t = get_time () - time_start;
- if (t <= 20.0)
+ if (t <= 2.0)
{
draw_lissajoux (datap);
}
@@ -119,9 +119,7 @@ step (Data *datap)
printf("FRAME COUNT..: %i frames\n", loop_count);
printf("TIME.........: %3.3f seconds\n", t);
printf("AVERAGE FPS..: %3.3f fps\n", (double)loop_count / t);
- /* if datap->image is not NULL, this means that */
- /* we are using the SHM mode */
- if (datap->image)
+ if (do_shm)
XCBImageSHMDestroy (datap->image);
XCBDisconnect (datap->conn);
exit(0);