History log of /haiku/src/apps/processcontroller/MemoryBarMenu.cpp
Revision Date Author Comments
# e5b7c9e3 16-Feb-2021 Murai Takashi <tmurai01@gmail.com>

processcontroller: Fix memory leak

When getting icon is failed, get_team_name_and_icon()
does not return false, so bitmap allocated to
infoPack.team_icon can be leaked.

* Delete bitmap in get_team_name_and_icon(), not in caller.
* Return false when getiing icon is failed.

Change-Id: Ib65065b59b70cd839e6deda4e1142bd104072d84
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3744
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# f6581478 10-Oct-2020 Augustin Cavalier <waddlesplash@gmail.com>

ProcessController: Relicense as MIT.

We received permission from the original author and all relevant contributors
(see the mailing list) to do this. (As best as can be established, BeUnited
did not modify the source code after importing besides adding their copyright.)


# 1bc7045f 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# 1c292f7e 19-Jul-2013 Rene Gollent <anevilyak@gmail.com>

ProcessController: Fix memory calculations.

On systems with > 4GB of memory, the calculations would overflow,
leading to the memory bars being drawn incorrectly.


# f589e913 06-Dec-2011 Michael Lotz <mmlr@mlotz.ch>

Fix end of range check to not read beyond the allocation.

The counter j is equal to fTeamCount if no matching team was found in
the team array. Therefore using it as an index into the team array was
invalid.


# 80cdaa81 10-Mar-2011 Siarzhuk Zharski <zharik@gmx.li>

Partially applying localization patch prepared by Jorma Karvonen.
Fixes #7350. Thanks.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40909 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a559946f 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Use string_for_size() to format and localize sizes in a consistent way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40780 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8b921e36 02-Mar-2011 Siarzhuk Zharski <zharik@gmx.li>

- Localization of the global popup menu name is removed as invidible to the end-user;
- In consistency with other applications, following units were replaced: MB -> MiB, KB -> KiB;
Pointed out by Jean-Loic Charroud. Thanks.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40777 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a1ce0a8 28-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Localized some still missed strings pointed out by Diver. Thanks!
Use more safe snprintf calls instead of sprintf ones.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40746 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 45219b61 04-Apr-2008 Rene Gollent <anevilyak@gmail.com>

Modify ProcessController's System Resources and Caches item: it
now shows cache and total committed mem respectively.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24801 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46e13cfc 13-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Vasilis Kaoutsis:
* Style cleanup.
* Renamed class GebsPreferences to Preferences.
* Made NoiseBarMenuItem::fBusyWaiting/fLost private and added getters
and setters.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23498 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a12827f2 29-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Moved "install to Deskbar" alert into the application.
* If you install ProcessController to the Deskbar after startup, its window
is not opened anymore.
* When you install ProcessController, the Deskbar is only restarted if needed;
this can probably be removed completely under Haiku.
* Renamed some menu items.
* Removed "Use Pulse's settings" menu item.
* Fixed remaining issues from bug #633 as far as ProcessController was concerned.
* Removed unused source files.
* Big cleanup, even though there could be done much much more.
* Compacted the source files a bit, merged PCView.cpp and PCView2.cpp to
ProcessController.cpp to match the name of the class.
* Renamed PCUtils.{cpp|h} to Utilities.{cpp|h}


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17647 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f4ccbdaa 29-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Made memory menu font sensitive (fixes part of bug #633).
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17638 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed7a3501 23-May-2006 Axel Dörfler <axeld@pinc-software.de>

Imported ProcessController from BeUnited's CVS into our repository.
Doesn't compile yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17568 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1bc7045fdfb85e6151d01c73669be19627c4783b 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# 1c292f7eb4e1aaebdb8ea3d860ffb1f4963821ba 19-Jul-2013 Rene Gollent <anevilyak@gmail.com>

ProcessController: Fix memory calculations.

On systems with > 4GB of memory, the calculations would overflow,
leading to the memory bars being drawn incorrectly.


# f589e913a7c29d771eb03cad57be1877d9581013 06-Dec-2011 Michael Lotz <mmlr@mlotz.ch>

Fix end of range check to not read beyond the allocation.

The counter j is equal to fTeamCount if no matching team was found in
the team array. Therefore using it as an index into the team array was
invalid.


# 80cdaa81fd09f358cdba09264f6ae2564016f87f 10-Mar-2011 Siarzhuk Zharski <zharik@gmx.li>

Partially applying localization patch prepared by Jorma Karvonen.
Fixes #7350. Thanks.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40909 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a559946f03c3a5ec349f5528a7d79afcaeef3e25 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Use string_for_size() to format and localize sizes in a consistent way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40780 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8b921e36503f42b8e0633215219c089d25463fae 02-Mar-2011 Siarzhuk Zharski <zharik@gmx.li>

- Localization of the global popup menu name is removed as invidible to the end-user;
- In consistency with other applications, following units were replaced: MB -> MiB, KB -> KiB;
Pointed out by Jean-Loic Charroud. Thanks.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40777 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a1ce0a8a48083cbbd5be28a6a54b14e17e5189a 28-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Localized some still missed strings pointed out by Diver. Thanks!
Use more safe snprintf calls instead of sprintf ones.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40746 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 45219b61ea6af93680f80e75f291dd212c552c29 04-Apr-2008 Rene Gollent <anevilyak@gmail.com>

Modify ProcessController's System Resources and Caches item: it
now shows cache and total committed mem respectively.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24801 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46e13cfc0c1dddfb1d1d5d66b0cd134ddb9aa08e 13-Jan-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Vasilis Kaoutsis:
* Style cleanup.
* Renamed class GebsPreferences to Preferences.
* Made NoiseBarMenuItem::fBusyWaiting/fLost private and added getters
and setters.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23498 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a12827f24d7ea3f8f932326f7ef095817fd87c4b 29-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Moved "install to Deskbar" alert into the application.
* If you install ProcessController to the Deskbar after startup, its window
is not opened anymore.
* When you install ProcessController, the Deskbar is only restarted if needed;
this can probably be removed completely under Haiku.
* Renamed some menu items.
* Removed "Use Pulse's settings" menu item.
* Fixed remaining issues from bug #633 as far as ProcessController was concerned.
* Removed unused source files.
* Big cleanup, even though there could be done much much more.
* Compacted the source files a bit, merged PCView.cpp and PCView2.cpp to
ProcessController.cpp to match the name of the class.
* Renamed PCUtils.{cpp|h} to Utilities.{cpp|h}


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17647 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f4ccbdaa3aff5300cf3eac6f010ecb4cdb5f0f14 29-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Made memory menu font sensitive (fixes part of bug #633).
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17638 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ed7a35012e2c301208b3a6b720cf389876f47ac5 23-May-2006 Axel Dörfler <axeld@pinc-software.de>

Imported ProcessController from BeUnited's CVS into our repository.
Doesn't compile yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17568 a95241bf-73f2-0310-859d-f6bbb57e9c96