diff options
author | notaz | 2011-03-07 19:51:58 +0200 |
---|---|---|
committer | notaz | 2011-03-07 19:57:59 +0200 |
commit | 2c8869044c0faff01c6bb8986346f78f631ceac1 (patch) | |
tree | b268e9820fdb490f61bf98da8bb650cbdcce97f6 | |
parent | 900acfae7114e6808c1a6ee6cd58059026bd526f (diff) | |
download | pcsx_rearmed-2c8869044c0faff01c6bb8986346f78f631ceac1.tar.gz pcsx_rearmed-2c8869044c0faff01c6bb8986346f78f631ceac1.tar.bz2 pcsx_rearmed-2c8869044c0faff01c6bb8986346f78f631ceac1.zip |
frontend: fix valgrind errors
also fixes pc build
-rw-r--r-- | frontend/linux/in_evdev.c | 3 | ||||
-rw-r--r-- | frontend/main.c | 2 | ||||
-rw-r--r-- | frontend/plat_omap.c | 4 | ||||
-rw-r--r-- | libpcsxcore/new_dynarec/emu_if.c | 1 |
4 files changed, 6 insertions, 4 deletions
diff --git a/frontend/linux/in_evdev.c b/frontend/linux/in_evdev.c index e6bdad1..d863c02 100644 --- 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; + memset(keybits, 0, sizeof(keybits)); 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) { diff --git a/frontend/main.c b/frontend/main.c index 61f023f..32b12ea 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -375,8 +375,8 @@ void OnFile_Exit() { #ifndef MAEMO menu_finish(); #endif - plat_finish(); SysClose(); + plat_finish(); exit(0); } diff --git a/frontend/plat_omap.c b/frontend/plat_omap.c index b479a66..b0490c7 100644 --- 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) { - 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); diff --git a/libpcsxcore/new_dynarec/emu_if.c b/libpcsxcore/new_dynarec/emu_if.c index f337b65..11ed843 100644 --- 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_clear_full() {} void invalidate_all_pages() {} void invalidate_block(unsigned int block) {} void new_dyna_pcsx_mem_init(void) {} |