diff --git a/tests/check/libs/gstglmemory.c b/tests/check/libs/gstglmemory.c index 5b29de6ed7..6aaffdd9a4 100644 --- a/tests/check/libs/gstglmemory.c +++ b/tests/check/libs/gstglmemory.c @@ -82,7 +82,7 @@ GST_START_TEST (test_basic) /* copy the memory */ mem2 = gst_memory_copy (mem, 0, -1); - fail_if (mem == NULL); + fail_if (mem2 == NULL); gl_mem2 = (GstGLMemory *) mem2; /* test params */