Index: trunk/phase3/includes/SearchEngine.php |
— | — | @@ -322,6 +322,14 @@ |
323 | 323 | function next() { |
324 | 324 | return false; |
325 | 325 | } |
| 326 | + |
| 327 | + /** |
| 328 | + * Frees the result set, if applicable. |
| 329 | + * @ access public |
| 330 | + */ |
| 331 | + function free() { |
| 332 | + // ... |
| 333 | + } |
326 | 334 | } |
327 | 335 | |
328 | 336 | |
Index: trunk/phase3/includes/SearchMySQL.php |
— | — | @@ -200,6 +200,10 @@ |
201 | 201 | return new SearchResult( $row ); |
202 | 202 | } |
203 | 203 | } |
| 204 | + |
| 205 | + function free() { |
| 206 | + $this->mResultSet->free(); |
| 207 | + } |
204 | 208 | } |
205 | 209 | |
206 | 210 | ?> |
Index: trunk/phase3/includes/SpecialSearch.php |
— | — | @@ -185,6 +185,7 @@ |
186 | 186 | } else { |
187 | 187 | $wgOut->addWikiText( '==' . wfMsg( 'notitlematches' ) . "==\n" ); |
188 | 188 | } |
| 189 | + $titleMatches->free(); |
189 | 190 | } |
190 | 191 | |
191 | 192 | if( $textMatches ) { |
— | — | @@ -195,6 +196,7 @@ |
196 | 197 | # Don't show the 'no text matches' if we received title matches |
197 | 198 | $wgOut->addWikiText( '==' . wfMsg( 'notextmatches' ) . "==\n" ); |
198 | 199 | } |
| 200 | + $textMatches->free(); |
199 | 201 | } |
200 | 202 | |
201 | 203 | if ( $num == 0 ) { |