Browse Source

Plug database connection leak.

Neal Wilson 11 years ago
parent
commit
ecfaaec01f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      config/Reports/chart.xml

+ 1
- 1
config/Reports/chart.xml View File

144
                 output.writeAttribute("y2", "450");
144
                 output.writeAttribute("y2", "450");
145
                 output.writeAttribute("style", "stroke:rgb(0,0,0);stroke-width:1;");
145
                 output.writeAttribute("style", "stroke:rgb(0,0,0);stroke-width:1;");
146
                 output.writeEndElement();
146
                 output.writeEndElement();
147
-                var query = new QSqlQuery();
148
                 var q = "SELECT "+curEndDate+"::date - "+curStartDate+"::date";
147
                 var q = "SELECT "+curEndDate+"::date - "+curStartDate+"::date";
149
                 query.exec(q);
148
                 query.exec(q);
150
                 query.next();
149
                 query.next();
425
                         i = days - 1;
424
                         i = days - 1;
426
                     }
425
                     }
427
                 }
426
                 }
427
+				query = query.invalidate();
428
                 output.writeStartElement("rect");
428
                 output.writeStartElement("rect");
429
                 output.writeAttribute("fill", "rgb(0,0,0)");
429
                 output.writeAttribute("fill", "rgb(0,0,0)");
430
                 output.writeAttribute("x", "45");
430
                 output.writeAttribute("x", "45");

Loading…
Cancel
Save