diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c index 2d416ef2b37..028b3342cd8 100644 --- a/dlls/wbemprox/query.c +++ b/dlls/wbemprox/query.c @@ -47,6 +47,7 @@ HRESULT create_view( const struct property *proplist, const WCHAR *class, void destroy_view( struct view *view ) { + if (!view) return; if (view->table) release_table( view->table ); heap_free( view->result ); heap_free( view );