test/encode/h264encode: Destroy config after context. 40/740/1
authorXiang, Haihao <haihao.xiang@intel.com>
Sat, 2 Apr 2011 08:23:13 +0000 (16:23 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 7 Apr 2011 06:45:45 +0000 (14:45 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
test/encode/h264encode.c

index 1d268b9..cfdaea6 100644 (file)
@@ -461,8 +461,8 @@ int main(int argc,char **argv)
     printf("\n\n");
     
     vaDestroySurfaces(va_dpy,&surface_id[0],SURFACE_NUM);
-    vaDestroyConfig(va_dpy,config_id);
     vaDestroyContext(va_dpy,context_id);
+    vaDestroyConfig(va_dpy,config_id);
     
     vaTerminate(va_dpy);