summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/launcher2/Launcher.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index a3b35dd7c..6f4074882 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -3397,6 +3397,10 @@ public final class Launcher extends Activity
}
});
}
+
+ // This wasn't being called before which resulted in a leak of AppWidgetHostViews (through
+ // mDesktopItems -> AppWidgetInfo -> hostView).
+ unbindDesktopItems();
}
/**