[Gambas-user] Issue 519 in gambas: allocations non freed when no obvious cross references

gambas at ...2524... gambas at ...2524...
Thu Apr 10 21:50:19 CEST 2014


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 519 by fabianfl... at ...626...: allocations non freed when no  
obvious cross references
http://code.google.com/p/gambas/issues/detail?id=519

1) The warning:

"warning: gbx3: warning: 2 allocation(s) non freed"

appears when no obvious cross-references.


2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

' [System]
' Gambas = 3.5.2
' OperatingSystem = Linux
' Kernel = 3.11.0-18-generic
' Architecture = x86
' Distribution = Ubuntu 13.10
' Desktop = LXDE
' Theme = QGtk
' Language = es_AR.UTF-8
' Memory = 1477 M
' [Libraries]
' GTK += libgtk-x11-2.0.so.0.2400.20

3) Provide a little project that reproduces the bug or the crash.

' Gambas class file

Static Public Sub main()
   Print AMethod()
End

Static Private Sub AMethod() As String
   Dim sTrimmedLow, sItem As String
   Dim sArray As String[]

   sArray = ["'A short text'", "'", "\n", "Other text", "'", "More  
text", "'Final text"]

   'This data not reproduce the problem:
   'sArray = ["A short text", "Other text", "More text", "Final text"]
   'This data not reproduce the problem:
   'sArray = []

   For Each sItem In sArray
     'gbx3: warning: 2 allocation(s) non freed.
     sTrimmedLow = Lower(Trim(sItem))
     'This not reproduce the problem:
     'sTrimmedLow = Trim(Lower(sItem))
   Next
End




-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list