Commit 081a48eb authored by Ralf Habacker's avatar Ralf Habacker Committed by Alexandre Julliard

server: Release atoms when destroying a window class.

parent 797f93be
......@@ -115,6 +115,8 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
return;
ok(classatom, "failed to register class\n");
ok(GetClipboardFormatNameW(classatom, str, ARRAY_SIZE(str)) != 0, "atom not found\n");
ok(!RegisterClassW (&cls),
"RegisterClass of the same class should fail for the second time\n");
......@@ -230,6 +232,8 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
ok(UnregisterClassW(className, hInstance),
"UnregisterClass() failed\n");
ok(GetClipboardFormatNameW(classatom, str, ARRAY_SIZE(str)) == 0,
"atom still found\n");
return;
}
......
......@@ -76,6 +76,8 @@ static struct window_class *create_class( struct process *process, int extra_byt
static void destroy_class( struct window_class *class )
{
release_global_atom( NULL, class->atom );
release_global_atom( NULL, class->base_atom );
list_remove( &class->entry );
release_object( class->process );
free( class );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment