[COMPLIB] Fix incorrect assertion.
[mirror/winof/.git] / core / complib / cl_obj.c
index 191ef02..c84f61b 100644 (file)
@@ -693,7 +693,7 @@ __destroy_obj(
                        while( cl_event_wait_on( &p_obj->event, 10000000, FALSE ) ==\r
                                CL_TIMEOUT )\r
                        {\r
-                               CL_ASSERT( !ref_cnt );\r
+                               CL_ASSERT( !p_obj->ref_cnt );\r
                        }\r
 #else  /* DBG */\r
                        cl_event_wait_on( &p_obj->event, EVENT_NO_TIMEOUT, FALSE );\r