Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r11794 r12209  
    733733        wp_widget_rss_output( $rss, $instance );
    734734        echo $after_widget;
     735        $rss->__destruct();
     736        unset($rss);
    735737    }
    736738
     
    771773        if ( is_admin() || current_user_can('manage_options') )
    772774            echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), $rss->get_error_message() ) . '</p>';
    773 
    774775        return;
    775776    }
     
    788789    if ( !$rss->get_item_quantity() ) {
    789790        echo '<ul><li>' . __( 'An error has occurred; the feed is probably down. Try again later.' ) . '</li></ul>';
     791        $rss->__destruct();
     792        unset($rss);
    790793        return;
    791794    }
     
    839842    }
    840843    echo '</ul>';
     844    $rss->__destruct();
     845    unset($rss);
    841846}
    842847
     
    947952            while ( stristr($link, 'http') != $link )
    948953                $link = substr($link, 1);
     954
     955            $rss->__destruct();
     956            unset($rss);
    949957        }
    950958    }
Note: See TracChangeset for help on using the changeset viewer.