Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 81: Fix CPO memory leak

Unified Diff

File: translate/storage/base.py
Patch Set: Added some tests workarounds Created 1 year, 3 months ago
Jump to:
View side by-side-diff with in line comments
Index: translate/storage/base.py
===================================================================
--- translate/storage/base.py	(revision 8034)
+++ translate/storage/base.py	(working copy)
@@ -374,7 +374,7 @@
 
         unit = self.UnitClass(source)
         self.addunit(unit)
-        return unit
+        return self.units[-1]
 
     def findunit(self, source):
         """Finds the unit with the given source string.

Powered by Google App Engine
This is Rietveld r159