Stefano Ceccherini
4cc3ec9fdd
Moved _joystick_info definition to JoystickTweaker.h, since there is no point to keep it public. Removed default parameter in the second version of Open(), otherwise the two functions can't be used unambiguously. Should fix bug #2904
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 08:18:48 +00:00
Stefano Ceccherini
6bda235a59
some gcc4 warning fixes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-17 08:08:20 +00:00
Stefano Ceccherini
a96b4beb84
Fix build for gcc4. If you really want to inline these methods, they need to be implemented in the header
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 09:53:06 +00:00
Stefano Ceccherini
b5e67ab6fb
Fix build for gcc4
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 09:30:07 +00:00
Stefano Ceccherini
80fa95ad77
no need to use private libbe variables anymore
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 09:19:21 +00:00
Stefano Ceccherini
adc7239906
also rename the device from 're' to 'rtl81xx'
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 07:32:46 +00:00
Stefano Ceccherini
b6e7f00598
sprintf -> snprintf. Also removed useless dprintf()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 14:41:33 +00:00
Stefano Ceccherini
88b98cbc2c
also add a '\n' character, thanks to Francesco Piccinno for noticing
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 14:29:33 +00:00
Stefano Ceccherini
1125065dfa
build fix for nongcc4 build
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 14:24:19 +00:00
Stefano Ceccherini
06679066a3
worked on the acpi namespace dumper: I kept the recursive implementation of the function, but I had to use a different thread, then, to read the data, without smashing the buffer passed by read(). It still doesnt' work correctly 100% (because I obviously made some stupid mistake, please review), but at least 'cat /dev/acpi/namespace' doesn't KDL anymore, and it even shows something.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 13:55:53 +00:00
Stefano Ceccherini
099e08d534
fixed gcc4 warnings
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 08:47:21 +00:00
Stefano Ceccherini
026c75e91c
add ctype-extn.c to the build. It contains the function versions of the is*** defines. Without this, bash 3 refuses to compile on haiku
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-09 14:58:45 +00:00
Stefano Ceccherini
2cddb12bac
don't use the minimum window width, but the real window width. Just in case one day the deskbar was a bit wider
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-09 12:35:06 +00:00
Stefano Ceccherini
36bc11a79f
I'm getting old. Without this change, bug #2350 was still with us. Sorry for forgetting to commit this
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-07 13:06:16 +00:00
Stefano Ceccherini
044627ee89
check for NULL in advance (CID 1056)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-07 07:49:36 +00:00
Stefano Ceccherini
bebd82c2b2
should've been part of r27898
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-07 05:51:09 +00:00
Stefano Ceccherini
0dcbaee24a
Screen was assuming setting a 800x600 mode would work anyway, but currently the Intel driver only supports the 'native' mode for laptop panels. Added a 'strict' parameter to SetBestMode which, if true, fails if it doesn't find any mode with the passed width. If false, and can't find any good mode, just uses the first mode in the list (could be improved). This fixes bug #2350
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-07 05:47:57 +00:00
Stefano Ceccherini
700b9c36d4
added some debug output
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 14:12:26 +00:00
Stefano Ceccherini
0dcd8099a3
With last commit, I accidentally removed a couple of network drivers from inclusion in the image. Sorry
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 12:09:09 +00:00
Stefano Ceccherini
286d55dccc
Added the rtl81xx driver to the image, at least for now. The problems I'm having seems not to be reproducible on other systems.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 12:07:11 +00:00
Stefano Ceccherini
40bab56b8f
renamed 're' driver to rtl81xx. I hope it's clear enough. If not, just shout. Also disabled the ids for cards already supported by the native rtl8169 driver
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 12:05:14 +00:00
Stefano Ceccherini
5feb95a185
Added Francesco Piccinno (and not Piccinini as I incorrectly wrote in the if_re driver commit message, sorry!) to the about box.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 11:12:14 +00:00
Stefano Ceccherini
bcdc0267c6
removed useless sprintf() call, added a TODO
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 06:25:28 +00:00
Stefano Ceccherini
4e0c2a797d
Menus can be scrolled also using the mouse wheel
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 06:03:27 +00:00
Stefano Ceccherini
bf732017df
if_re freebsd driver, adapted for the build by Francesco Piccinini. It
...
supports many Realtek based NIC which our own driver doesn't support
(for example the RTL8101E). Thanks! Not added to the image yet, since it
causes some problems on my laptop (but could well be caused by the
freebsd compat layer, or by the scheduler)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 05:57:35 +00:00
Stefano Ceccherini
ef68c59b17
Removed useless _APP_ links
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-02 09:56:01 +00:00
Stefano Ceccherini
2ebd72b194
sprintf -> snprintf. malloc.h ain't no standard header. Removed non-haiku code
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-01 12:39:59 +00:00
Stefano Ceccherini
01632a5340
Added optional debug code for the acpi busmanager. Removed code for compiling the module on beos/dano/zeta
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-01 12:33:04 +00:00
Stefano Ceccherini
60097e8433
fixed gcc4 warnings. BSlider::UpdateText() actually returns a const char *, not a char *
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-01 08:17:34 +00:00
Stefano Ceccherini
fb62af45a2
Use B_ANY_KERNEL_ADDRESS instead of B_ANY_KERNEL_BLOCK_ADDRESS, like suggested by Axel and Marcus
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-30 15:19:30 +00:00
Stefano Ceccherini
d6a7cd2564
Checking the return value of methods is always a good idea. This fixes a KDL I'm getting on start with vmware when including the acpi module in the build. Now, finding why this happens in the first place would be nice.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-29 13:13:39 +00:00
Stefano Ceccherini
3bb8984f7c
don't leak the BMessenger in case of error. CID 836
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-29 07:05:26 +00:00
Stefano Ceccherini
2b389c6e5a
don't leak the bmessenger. CID 888
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 15:51:29 +00:00
Stefano Ceccherini
85d7d4bc41
the loop was never entered. CID 93
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 14:36:29 +00:00
Stefano Ceccherini
84dcf4f24f
CID 996. Don't leak the BString
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 14:23:39 +00:00
Stefano Ceccherini
2e2f53f614
don't leak extendedPoseInfo on error. CID 997
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 14:19:59 +00:00
Stefano Ceccherini
d0397c5424
don't leak the BMessengers. CID 1009 and 1010
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 14:03:25 +00:00
Stefano Ceccherini
e32494d24f
Check for NULL before dereferencing the pointer. CID 1050
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 13:56:50 +00:00
Stefano Ceccherini
02de38b077
Fixed leaks. CID 893 and 894. There are still some leaks in this file, but the code is too complex and I won't touch it. I'd feel better if someone who knows it better would have a look
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 13:12:19 +00:00
Stefano Ceccherini
7483a2666e
fixed leaks. CID 906 and 907
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 12:12:59 +00:00
Stefano Ceccherini
d556a216cf
delete the str array in any case, although if numBytes <= 0, the array woulnd't have been allocated. CID 882.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 12:06:32 +00:00
Stefano Ceccherini
0f85a3eb5b
renamed field variables to fit our guidelines. Also use sem_id instead of long
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 12:00:03 +00:00
Stefano Ceccherini
68fba17fe7
style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 11:55:00 +00:00
Stefano Ceccherini
bdee0a3f6d
Don't leak the BMessenger (CID 880)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 11:49:25 +00:00
Stefano Ceccherini
657a3676f9
don't leak the BMessenger. CID 884
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 10:39:48 +00:00
Stefano Ceccherini
cd83a15bde
BFilePanel doesn't take ownership of the passed entry_ref. That code wouldn't have worked anyway, since FindRef() returns B_OK on success. CID 933
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 10:31:31 +00:00
Stefano Ceccherini
2ad68d466a
don't leak the BMessenger. CID 928 and 929
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 10:11:20 +00:00
Stefano Ceccherini
c404bd0e22
BFilePanel makes a copy of the passed messenger
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 10:08:04 +00:00
Stefano Ceccherini
1c35c27bec
renamed static variable to have the s prefix
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 07:39:28 +00:00
Stefano Ceccherini
7696317d06
Style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 07:37:23 +00:00
Stefano Ceccherini
97c7b4da99
minWidth could be used uninitialized. CID 1150
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 07:31:48 +00:00
Stefano Ceccherini
e7d2f0f0e8
fix the problem reported in the TODO by using a reference to pointer
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-25 06:12:02 +00:00
Stefano Ceccherini
727834785d
Added a TODO explaining why BGameSoundDevice::Buffer() is broken. Small style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-24 12:55:25 +00:00
Stefano Ceccherini
250505c99b
more small style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 15:38:32 +00:00
Stefano Ceccherini
92ed85c9ec
use nothrow for allocation
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 12:41:42 +00:00
Stefano Ceccherini
671fe092d3
Added missing break(s) in switch block in GameSoundBuffer::GetAttributes(). Added missing default case. Avoid double calculation of buffer size
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 12:28:18 +00:00
Stefano Ceccherini
3beb2f72d7
style changes. Also added a TODO taken from a comment in bug #575
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 11:02:58 +00:00
Stefano Ceccherini
0e79ce1ebc
Style changes. don't use new to allocate a 2-sized buffer, but use the stack
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 10:43:02 +00:00
Stefano Ceccherini
c9e6288649
Fixed every (hopefully) CID cases of delete where delete[] should have been used. CID 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 143, 144, 147, 148, 149, 150
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 09:52:45 +00:00
Stefano Ceccherini
2d4df7f2fc
CID 80. err was checked twice for the same value. Also add more error checks
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 08:33:09 +00:00
Stefano Ceccherini
b0acb3febf
Don't leak the BMediaFile. CID 5
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-23 08:14:07 +00:00
Stefano Ceccherini
b7ef02aac6
use defines for some gif flags, for clearer code. Reordered initializers to avoid warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-19 09:39:19 +00:00
Stefano Ceccherini
136d40a890
in case the passed name was NULL, the TeamMenuItem would set a NULL label, instead of passing the 'team n' string. Also use snprintf() to build said string, and change the code a bit. malloc.h > stdlib.h, and don't check for null before calling free()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 10:24:19 +00:00
Stefano Ceccherini
3534ce57f0
malloc.h ain't no standard header. Small style change.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 07:02:15 +00:00
Stefano Ceccherini
c2831e444a
Use GetTrackerIcon() in case getting the specific app icon fails, instead of using the (outdated) icon in the resource. Fixes bug #984 . Thanks to Stephan for the hint.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 06:55:59 +00:00
Stefano Ceccherini
b0a63e7a2a
implemented BarTeamInfo copy constructor and used it in TBarApp::Subscribe(). Also cleaned up a bit the code in TBarApp destructor.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 14:38:12 +00:00
Stefano Ceccherini
8ade1bf7a6
initialize 'err'. CID 1308 & 1309
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 10:05:04 +00:00
Stefano Ceccherini
6dcce65687
port the changes made to the libbe counterpart (r27297 and r27485)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 09:15:48 +00:00
Stefano Ceccherini
632f1504a8
assign a token to the ServerPicture before anything else. If something fails to initialize, we can still search the picture via token
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 07:35:00 +00:00
Stefano Ceccherini
10d8f3749e
added a test for BView::SetDiskMode()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:27:41 +00:00
Stefano Ceccherini
9ed6b85806
fix warning. BSlider::SetValue() accepts an int32 parameter
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 07:33:55 +00:00
Stefano Ceccherini
b482d05552
Fix gcc4 warning, small style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 07:32:36 +00:00
Stefano Ceccherini
76ef98dd3f
don't leak the BMessageRunner. CID 8
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:51:21 +00:00
Stefano Ceccherini
7bc02c61bd
simplified this weird code, while also fixing CID 1059
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 13:02:39 +00:00
Stefano Ceccherini
0bec71008b
moved the NULL check before dereferencing the view pointer. CID 1063
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:44:07 +00:00
Stefano Ceccherini
a57b0996eb
cleanup and return in error case, otherwise a stale style pointer could be added to the family. CID 1246
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:26:43 +00:00
Stefano Ceccherini
437ecc65ae
delete -> delete[]. CID 141
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:19:31 +00:00
Stefano Ceccherini
ec10ce591d
delete -> delete[]. CID 151
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:15:54 +00:00
Stefano Ceccherini
99b75a6f12
delete -> delete[]. CID 121
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:11:58 +00:00
Stefano Ceccherini
c96c57848d
this was supposed to be part of the previous commit
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:04:34 +00:00
Stefano Ceccherini
ad7014b0d8
Other small style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 12:00:52 +00:00
Stefano Ceccherini
6aa49afc14
set fScanLine to NULL after freeing it.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 10:44:43 +00:00
Stefano Ceccherini
a50feb079d
more style changes
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 10:38:46 +00:00
Stefano Ceccherini
6da7e6450f
Style changes. No functional change
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 10:30:45 +00:00
Stefano Ceccherini
9179339c4a
free the allocated strings in error case. CID 864
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 08:01:33 +00:00
Stefano Ceccherini
59afe07d2c
use MemoryDeleter to make sure we free 'flattenedRuns' on error, in every case. CID 905
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 07:49:27 +00:00
Stefano Ceccherini
697dfc3e47
delete -> free(), as the array is allocated with malloc
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 07:37:03 +00:00
Stefano Ceccherini
2749af3ff8
BTextView::FlattenRunArray() doesn't take ownership of the passed array. Fixes CID 904
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 07:35:58 +00:00
Stefano Ceccherini
b56c51bcba
set fPanRamp and fGainRamp to NULL after deleting them, otherwise they could be double-freed. Also dont' check for NULL before calling delete. CID 1230 and 1231
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 07:17:27 +00:00
Stefano Ceccherini
dd52d6d1a0
the 'base' string was leaked. CID 1296
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 06:51:59 +00:00
Stefano Ceccherini
1e8da5fd15
fAppName was leaked (CID 6). Also moved the initialization of fText to the end of the function, so that we avoid a BString::Adopt() call
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 10:26:05 +00:00
Stefano Ceccherini
746cac055a
fixed buffer overrun, CID 649
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 10:10:13 +00:00
Stefano Ceccherini
b5d458a508
First round of style changes: renamed all member variables from m_var_name to fVarName
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 09:55:02 +00:00
Stefano Ceccherini
866ece3115
build fix
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 09:34:47 +00:00
Stefano Ceccherini
1adaf58e1f
gcc4 noticed GenericThread::GetName() was returning a pointer to a local variable. No code is using this function, so it's safe to strdup() it. This class needs a serious restyling, though, as it doesn't conform to our coding guidelines
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 09:33:59 +00:00
Stefano Ceccherini
2e2bff94a9
buttons could be used initialized if locking the looper failed (CID 1134)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 08:09:13 +00:00
Stefano Ceccherini
fc16834e55
buffer is an array, so use delete[]. CID 130
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-12 07:34:37 +00:00
Stefano Ceccherini
c4f7df69a5
be_app could be NULL in BApplication's destructor, if the BApplication didn't initialize itself fully on construction. This fixes a crash when launching some already running application (i.e. print_server)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-11 12:02:33 +00:00
Stefano Ceccherini
f66d53f916
fixed gcc4 warnings
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-11 07:57:08 +00:00
Stefano Ceccherini
da4a0bff5e
fix gcc4 build
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-11 07:24:40 +00:00