Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0, Release 4.0.0
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: Core, iOS
    • Labels:
      None
    • Environment:

      iOS 3_5_X and master branch

    • Sprint:
      2014 Sprint 24 SDK

      Description

      Titanium proxies are not being released.

      Proxies are released correctly using 3.4.1.GA

      Steps to reproduce:

      1. Run the code below
      2. Run instruments on the xcode project generated
      3. Look at allocations
      4. Filter by "proxy"
      5. Click the buttons in the example app.
      6. Notice that the proxies are never released

      var win = Ti.UI.createWindow({
          backgroundColor: "white",
          layout: 'vertical'
      });
      win.open();
       
      addButton({
          title: 'create objects',
          callback: function(e) {
              var view = Ti.UI.createView();
              var httpClient = Titanium.Network.createHTTPClient();
              var file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'app.js');
          }
      });
       
      addButton({
          title: 'open window',
          callback: function(e) {
              openWindow();
          }
      });
       
      function addButton(args) {
          var b1 = Ti.UI.createButton({
              title: args.title,
              top: 40
          });
          b1.addEventListener('click', args.callback);
          win.add(b1);
      }
       
      function openWindow() {
          var win2 = Ti.UI.createWindow({
              backgroundColor: 'blue'
          });
          var v = Ti.UI.createView({
              backgroundColor: 'red',
              height: 50, width: 50
          });
          win2.add(v);
          win2.addEventListener('click', function() {
              win2.close();
          });
          win2.open();
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                jalter Jon Alter
                Reviewer:
                Jon Alter
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19403
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration