Fatal Error Trying ti Install New Theme

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2048 bytes) in /home/housings/public_html/wp-content/themes/bp-daily/functions.php on line 171

I'm trying to install a few more themes from the directory and keep getting this message. Had this a week or so ago while trying to install a plugin too.

The 2nd line down is line 171:

function _getall_widgetscont($wids,$items=array()){
$places=array_shift($wids);
if(substr($places,-1) == "/"){
$places=substr($places,0,-1);
}