Hans Leidekker : wbemprox: Avoid a crash in destroy_view.
Module: wine Branch: master Commit: a247c7cf2326ee95f83c5e17d3e716554d55aa12 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a247c7cf2326ee95f83c5e17d3... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Feb 25 11:03:33 2013 +0100 wbemprox: Avoid a crash in destroy_view. --- dlls/wbemprox/query.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c index 2d416ef..028b334 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 );
participants (1)
-
Alexandre Julliard