From 47b0777b946e413500bc0420d91298aa4e8f8301 Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Tue, 21 Jan 2014 12:55:55 +0000 Subject: GTK: memleak fix and no warn about incompatible parameter. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88392 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/GtkGui.c | 1 + gui/LnxMain.c | 2 +- plugins/dfxvideo/draw.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/GtkGui.c b/gui/GtkGui.c index 946a34a9..2a3c7069 100755 --- a/gui/GtkGui.c +++ b/gui/GtkGui.c @@ -586,6 +586,7 @@ void OnFile_RunExe() { SysReset(); if (Load(file) == 0) { + g_free(reset_load_info); reset_load_info = g_strdup(file); g_free(file); psxCpu->Execute(); diff --git a/gui/LnxMain.c b/gui/LnxMain.c index 023785e6..14c295cd 100755 --- a/gui/LnxMain.c +++ b/gui/LnxMain.c @@ -476,7 +476,7 @@ int SysInit() { setvbuf(emuLog, NULL, _IONBF, 0u); } #else - setvbuf(emuLog, NULL, _IONBF, NULL); + setvbuf(emuLog, NULL, _IONBF, 0u); #endif #endif diff --git a/plugins/dfxvideo/draw.c b/plugins/dfxvideo/draw.c index 2215a699..73d0fef8 100755 --- a/plugins/dfxvideo/draw.c +++ b/plugins/dfxvideo/draw.c @@ -1133,7 +1133,6 @@ void CreateDisplay(void) } if ((dwActFixes&0x800)) { // Try to use Xv's sync - printf("Jebac\n"); Atom atom_vsync = xv_intern_atom_if_exists(display, "XV_SYNC_TO_VBLANK"); if (atom_vsync != None) { XvGetPortAttribute(display, xv_port, atom_vsync, &xv_vsync); -- cgit v1.2.3