From: <dat...@us...> - 2006-05-12 02:50:28
|
Revision: 16179 Author: datallah Date: 2006-05-11 19:50:23 -0700 (Thu, 11 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16179&view=rev Log Message: ----------- Fix Registry key leakage. Modified Paths: -------------- trunk/plugins/win32/winprefs/winprefs.c Modified: trunk/plugins/win32/winprefs/winprefs.c =================================================================== --- trunk/plugins/win32/winprefs/winprefs.c 2006-05-12 02:34:07 UTC (rev 16178) +++ trunk/plugins/win32/winprefs/winprefs.c 2006-05-12 02:50:23 UTC (rev 16179) @@ -382,7 +382,7 @@ GtkWidget *vbox; GtkWidget *button; char* gtk_version = NULL; - HKEY hKey = HKEY_CURRENT_USER; + HKEY hKey; ret = gtk_vbox_new(FALSE, 18); gtk_container_set_border_width(GTK_CONTAINER(ret), 12); @@ -409,6 +409,7 @@ if(ERROR_SUCCESS == RegQueryValueEx(hKey, "Gaim", 0, NULL, NULL, NULL)) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); } + RegCloseKey(hKey); } g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(winprefs_set_autostart), NULL); gtk_widget_show(button); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |