Hans Leidekker : wbemprox: Remove dynamic tables from the global list when they're freed.
Alexandre Julliard
julliard at winehq.org
Thu Oct 4 13:38:38 CDT 2012
Module: wine
Branch: master
Commit: 804e7e91ccc4f56b7c9183900137fb6ecee7f724
URL: http://source.winehq.org/git/wine.git/?a=commit;h=804e7e91ccc4f56b7c9183900137fb6ecee7f724
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Oct 4 15:36:33 2012 +0200
wbemprox: Remove dynamic tables from the global list when they're freed.
---
dlls/wbemprox/table.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wbemprox/table.c b/dlls/wbemprox/table.c
index 4305f1f..c414aa9 100644
--- a/dlls/wbemprox/table.c
+++ b/dlls/wbemprox/table.c
@@ -308,8 +308,10 @@ void free_table( struct table *table )
clear_table( table );
if (table->flags & TABLE_FLAG_DYNAMIC)
{
+ TRACE("destroying %p\n", table);
heap_free( (WCHAR *)table->name );
free_columns( (struct column *)table->columns, table->num_cols );
+ list_remove( &table->entry );
heap_free( table );
}
}
@@ -342,6 +344,7 @@ struct table *create_table( const WCHAR *name, UINT num_cols, const struct colum
table->data = data;
table->fill = fill;
table->flags = TABLE_FLAG_DYNAMIC;
+ list_init( &table->entry );
return table;
}
More information about the wine-cvs
mailing list