~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/hello_events/hello_events.cc

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2010-10-18 21:21:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: barry.leslie@primebase.com-20101018212120-dqukgtkwhb1imt1o
Merged changes from lp:pbms. These changes should remove any danger
of longjmp() clobbering local variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 * This plugin is an example events plugin that just prints some info for
26
26
 * the events that it is tracking. 
27
27
 *  
28
 
set global hello_events_enable = ON;
29
 
set global hello_events_watch_databases = "x";   
30
 
set global hello_events_watch_tables = "x,y";
 
28
set global hello_events1_enable = ON;
 
29
set global hello_events1_watch_databases = "x";   
 
30
set global hello_events1_watch_tables = "x,y";
31
31
 
32
32
 */
33
33
 
162
162
HelloEvents::~HelloEvents()
163
163
{
164
164
  /* These are strdup'd in option processing */
165
 
  free(sysvar_table_list);
166
 
  free(sysvar_db_list);
 
165
  if (sysvar_table_list) {
 
166
        free(sysvar_table_list);
 
167
        sysvar_table_list = NULL;
 
168
  }
 
169
  
 
170
  if (sysvar_db_list) {
 
171
        free(sysvar_db_list);
 
172
        sysvar_db_list = NULL;
 
173
  }
 
174
  
167
175
}
168
176
 
169
177
//==================================