Module: wine Branch: master Commit: 42e2c99ce2ed61f4bd2261d8627629e374007724 URL: http://source.winehq.org/git/wine.git/?a=commit;h=42e2c99ce2ed61f4bd2261d862...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jun 26 16:49:23 2008 +0200
server: Fix a potential desktop reference leak.
---
server/window.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/window.c b/server/window.c index 303a6cf..1879b7c 100644 --- a/server/window.c +++ b/server/window.c @@ -1963,6 +1963,9 @@ DECL_HANDLER(get_window_children) atom_t atom = req->atom; struct desktop *desktop = NULL;
+ get_req_unicode_str( &cls_name ); + if (cls_name.len && !(atom = find_global_atom( NULL, &cls_name ))) return; + if (req->desktop) { if (!(desktop = get_desktop_obj( current->process, req->desktop, DESKTOP_ENUMERATE ))) return; @@ -1974,9 +1977,6 @@ DECL_HANDLER(get_window_children) if (!parent && !(desktop = get_thread_desktop( current, 0 ))) return; }
- get_req_unicode_str( &cls_name ); - if (cls_name.len && !(atom = find_global_atom( NULL, &cls_name ))) return; - if (parent) total = get_children_windows( parent, atom, req->tid, NULL, 0 ); else