[MPlayer-cvslog] r36929 - trunk/gui/win32/preferences.c
ib
subversion at mplayerhq.hu
Mon Feb 24 15:25:53 CET 2014
Author: ib
Date: Mon Feb 24 15:25:53 2014
New Revision: 36929
Log:
Fix bug with Win32 GUI preferences.
Fix memory leak by freeing proc_priority.
Modified:
trunk/gui/win32/preferences.c
Modified: trunk/gui/win32/preferences.c
==============================================================================
--- trunk/gui/win32/preferences.c Mon Feb 24 14:15:23 2014 (r36928)
+++ trunk/gui/win32/preferences.c Mon Feb 24 15:25:53 2014 (r36929)
@@ -32,6 +32,7 @@
#include "osdep/priority.h"
#include "mixer.h"
#include "gui/util/list.h"
+#include "gui/util/string.h"
#include "gui/ui/ui.h"
#include "gui/interface.h"
#include "gui.h"
@@ -539,7 +540,7 @@ static LRESULT CALLBACK PrefsWndProc(HWN
/* Set the priority level */
SendMessage(prio, CB_GETLBTEXT, (WPARAM)SendMessage(prio, CB_GETCURSEL, 0, 0), (LPARAM)procprio);
- proc_priority = strdup(procprio);
+ setdup(&proc_priority, procprio);
/* double buffering */
if(SendDlgItemMessage(hwnd, ID_DOUBLE, BM_GETCHECK, 0, 0) == BST_CHECKED)
More information about the MPlayer-cvslog
mailing list