Uploaded image for project: 'ZK Charts'
  1. ZK Charts
  2. ZKCHARTS-33

Memory Leak in ZK Charts (Shadow.NONE)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.1
    • 1.0.0, 1.1.0, 1.2.0, 1.3.0, 2.0.0, 2.0.0.1, 2.0.1

      Problem:
      Memory leak occur in Shadow.NONE. Because all listeners are never removed.

      Solutions:

      • Shadow.NONE can't accept listeners.
      • Remove Shadow.NONE and always create a new EmptyShadow instance.

      Workaround

      chart.getChart().setShadow( new Shadow()
      {
            @Override
            public String toJSONString()
            {
                return "false";
            }
      } );
      

            jumperchen jumperchen
            interactmn interactmn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Time Spent - 30 minutes Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - 30 minutes Remaining Estimate - 30 minutes
                30m