VS2010 fixes.

This commit is contained in:
Jan Vidar Krey
2011-12-21 01:42:21 +01:00
parent 7325b15786
commit f31fc65e1d
2 changed files with 5 additions and 4 deletions

View File

@@ -218,8 +218,9 @@ int plugin_register(struct plugin_handle* plugin, const char* config)
int plugin_unregister(struct plugin_handle* plugin)
{
struct sql_data* sql;
set_error_message(plugin, 0);
struct sql_data* sql = (struct sql_data*) plugin->ptr;
sql = (struct sql_data*) plugin->ptr;
sqlite3_close(sql->db);
hub_free(sql);
return 0;