src/video/x11/SDL_x11yuv.c
changeset 410 365f57b7c4ac
parent 409 1c3cf7231cd4
child 429 c1666427297c
equal deleted inserted replaced
409:1c3cf7231cd4 410:365f57b7c4ac
   121 								break;
   121 								break;
   122 							}
   122 							}
   123 						}
   123 						}
   124 					}
   124 					}
   125 				}
   125 				}
   126 				XFree(formats);
   126 				if ( formats ) {
       
   127 					XFree(formats);
       
   128 				}
   127 			}
   129 			}
   128 		}
   130 		}
   129 		SDL_NAME(XvFreeAdaptorInfo)(ainfo);
   131 		SDL_NAME(XvFreeAdaptorInfo)(ainfo);
   130 	}
   132 	}
   131 	if ( xv_port == -1 ) {
   133 	if ( xv_port == -1 ) {