Forgotten in the previous commit.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 11 Mar 2008 23:59:20 +0000 (00:59 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 12 Mar 2008 11:07:42 +0000 (12:07 +0100)
projects/activex/vlccontrol2.cpp

index 8d45973..d319b54 100644 (file)
@@ -2172,7 +2172,7 @@ STDMETHODIMP VLCVideo::get_aspectRatio(BSTR* aspect)
                 psz_aspect = NULL;
                 return (NULL == *aspect) ? E_OUTOFMEMORY : NOERROR;
             }
-            if( psz_aspect ) free( psz_aspect );
+            free( psz_aspect );
             psz_aspect = NULL;
         }
         _p_instance->setErrorInfo(IID_IVLCVideo, libvlc_exception_get_message(&ex));
@@ -2303,7 +2303,7 @@ STDMETHODIMP VLCVideo::get_crop(BSTR* geometry)
                 psz_geometry = NULL;
                 return (NULL == geometry) ? E_OUTOFMEMORY : NOERROR;
             }
-            if( psz_geometry ) free( psz_geometry );
+            free( psz_geometry );
             psz_geometry = NULL;
         }
         _p_instance->setErrorInfo(IID_IVLCVideo, libvlc_exception_get_message(&ex));