Hans Leidekker : wbemprox: Avoid a crash in destroy_view.

Alexandre Julliard julliard at winehq.org
Mon Feb 25 14:33:47 CST 2013


Module: wine
Branch: master
Commit: a247c7cf2326ee95f83c5e17d3e716554d55aa12
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a247c7cf2326ee95f83c5e17d3e716554d55aa12

Author: Hans Leidekker <hans at 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 );




More information about the wine-cvs mailing list