Permalink
Browse files

Fixing nasty memory leak

  • Loading branch information...
1 parent bdf7ca7 commit fe484eb0116146631541486747dce277d41be003 @cezarsa committed Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tweets_assembler.js
View
@@ -269,13 +269,13 @@ var Renderer = {
var mapFunc = this.entitiesFuncs.typeMap,
sortFunc = this.entitiesFuncs.indexSort;
- entities.media = entities.media || [];
+ var mediaEntities = entities.media || [];
var orderedEntities = [].concat(
entities.hashtags.map(mapFunc('hashtag')),
entities.urls.map(mapFunc('url')),
entities.user_mentions.map(mapFunc('mention')),
- entities.media.map(mapFunc('media')));
+ mediaEntities.map(mapFunc('media')));
orderedEntities.sort(sortFunc);

0 comments on commit fe484eb

Please sign in to comment.