notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
900acfa
)
frontend: fix valgrind errors
author
notaz
<notasas@gmail.com>
Mon, 7 Mar 2011 17:51:58 +0000
(19:51 +0200)
committer
notaz
<notasas@gmail.com>
Mon, 7 Mar 2011 17:57:59 +0000
(19:57 +0200)
also fixes pc build
frontend/linux/in_evdev.c
patch
|
blob
|
blame
|
history
frontend/main.c
patch
|
blob
|
blame
|
history
frontend/plat_omap.c
patch
|
blob
|
blame
|
history
libpcsxcore/new_dynarec/emu_if.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/linux/in_evdev.c
b/frontend/linux/in_evdev.c
index
e6bdad1
..
d863c02
100644
(file)
--- a/
frontend/linux/in_evdev.c
+++ b/
frontend/linux/in_evdev.c
@@
-585,10
+585,11
@@
static int in_evdev_clean_binds(void *drv_data, int *binds, int *def_binds)
in_evdev_t *dev = drv_data;
int i, t, ret, offs, count = 0;
in_evdev_t *dev = drv_data;
int i, t, ret, offs, count = 0;
+ memset(keybits, 0, sizeof(keybits));
ret = ioctl(dev->fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits);
if (ret == -1) {
perror("in_evdev: ioctl failed");
ret = ioctl(dev->fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits);
if (ret == -1) {
perror("in_evdev: ioctl failed");
- memset(keybits, 0xff, sizeof(keybits)); /* mark all as good */
+
//
memset(keybits, 0xff, sizeof(keybits)); /* mark all as good */
}
if (dev->abs_lzone != 0) {
}
if (dev->abs_lzone != 0) {
diff --git
a/frontend/main.c
b/frontend/main.c
index
61f023f
..
32b12ea
100644
(file)
--- a/
frontend/main.c
+++ b/
frontend/main.c
@@
-375,8
+375,8
@@
void OnFile_Exit() {
#ifndef MAEMO
menu_finish();
#endif
#ifndef MAEMO
menu_finish();
#endif
- plat_finish();
SysClose();
SysClose();
+ plat_finish();
exit(0);
}
exit(0);
}
diff --git
a/frontend/plat_omap.c
b/frontend/plat_omap.c
index
b479a66
..
b0490c7
100644
(file)
--- a/
frontend/plat_omap.c
+++ b/
frontend/plat_omap.c
@@
-30,8
+30,8
@@
struct vout_fbdev *layer_fb;
static int omap_setup_layer_(int fd, int enabled, int x, int y, int w, int h, int first_call)
{
static int omap_setup_layer_(int fd, int enabled, int x, int y, int w, int h, int first_call)
{
- struct omapfb_plane_info pi;
- struct omapfb_mem_info mi;
+ struct omapfb_plane_info pi
= { 0, }
;
+ struct omapfb_mem_info mi
= { 0, }
;
int ret;
ret = ioctl(fd, OMAPFB_QUERY_PLANE, &pi);
int ret;
ret = ioctl(fd, OMAPFB_QUERY_PLANE, &pi);
diff --git
a/libpcsxcore/new_dynarec/emu_if.c
b/libpcsxcore/new_dynarec/emu_if.c
index
f337b65
..
11ed843
100644
(file)
--- a/
libpcsxcore/new_dynarec/emu_if.c
+++ b/
libpcsxcore/new_dynarec/emu_if.c
@@
-270,6
+270,7
@@
void *psxH_ptr;
void new_dynarec_init() {}
void new_dyna_start() {}
void new_dynarec_cleanup() {}
void new_dynarec_init() {}
void new_dyna_start() {}
void new_dynarec_cleanup() {}
+void new_dynarec_clear_full() {}
void invalidate_all_pages() {}
void invalidate_block(unsigned int block) {}
void new_dyna_pcsx_mem_init(void) {}
void invalidate_all_pages() {}
void invalidate_block(unsigned int block) {}
void new_dyna_pcsx_mem_init(void) {}