~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_http/auth_http.cc

  • Committer: Brian Aker
  • Date: 2009-07-11 05:59:19 UTC
  • mfrom: (1089.1.9 merge)
  • Revision ID: brian@gaz-20090711055919-m4px3crrdgta5lie
Collection of patches from new-cleanup (includes asserts for field in debug)

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
static int initialize(PluginRegistry &registry)
106
106
{
 
107
  /* 
 
108
   * Per libcurl manual, in multi-threaded applications, curl_global_init() should
 
109
   * be called *before* curl_easy_init()...which is called in Auto_http's 
 
110
   * constructor.
 
111
   */
 
112
  if (curl_global_init(CURL_GLOBAL_NOTHING) != 0)
 
113
    return 1;
 
114
 
107
115
  auth= new Auth_http();
108
116
  registry.add(auth);
109
117
 
116
124
  {
117
125
    registry.remove(auth);
118
126
    delete auth;
 
127
 
 
128
    curl_global_cleanup();
119
129
  }
120
130
 
121
131
  return 0;