Fix GetDCBrush/PenColor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog
	Add missing GDI_ReleaseObj() to GetDCBrushColor & GetDCPenColor
diff -u -r objects/dc.c objects/dc.c
--- objects/dc.c	2003-11-18 10:54:54.000000000 +0000
+++ objects/dc.c	2003-11-29 14:45:18.000000000 +0000
@@ -1477,6 +1477,7 @@
     if (dc)
     {
         dcBrushColor = dc->dcBrushColor;
+	GDI_ReleaseObj( hdc );
     }
 
     return dcBrushColor;
@@ -1540,6 +1541,7 @@
     if (dc)
     {
         dcPenColor = dc->dcPenColor;
+	GDI_ReleaseObj( hdc );
     }
 
     return dcPenColor;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux