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

Issue 81: Fix CPO memory leak

Unified Diff

File: translate/storage/base.py
Patch Set: Using low leve accessors Created 1 year, 3 months ago
Jump to:
View side by-side-diff with in line comments
« no previous file | translate/storage/cpo.py » ('j')
Index: translate/storage/base.py
===================================================================
--- translate/storage/base.py	(revision 8029)
+++ 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.

« no previous file | translate/storage/cpo.py » ('j')

Powered by Google App Engine
This is Rietveld r159