summaryrefslogtreecommitdiff
path: root/tests/mode
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mode')
-rw-r--r--tests/mode/modetest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mode/modetest.c b/tests/mode/modetest.c
index bf1a5169..8f151758 100644
--- a/tests/mode/modetest.c
+++ b/tests/mode/modetest.c
@@ -288,12 +288,12 @@ int testFrameBufferAdd(int fd, drmModeResPtr res)
printf("\tRemoveing BO\n");
- ret = drmBODestroy(fb, &bo);
+ ret = drmBOUnreference(fb, &bo);
return 0;
err_bo:
- drmBODestroy(fd, &bo);
+ drmBOUnreference(fd, &bo);
err:
printf("\tFailed\n");