Author: al
Date: 2009-12-30 21:33:21 +0100 (Wed, 30 Dec 2009)
New Revision: 2907

Modified:
   trunk/librawstudio/rs-image16.c
Log:
Free the aligned memory properly in windows.

Modified: trunk/librawstudio/rs-image16.c
===================================================================
--- trunk/librawstudio/rs-image16.c     2009-12-30 20:31:59 UTC (rev 2906)
+++ trunk/librawstudio/rs-image16.c     2009-12-30 20:33:21 UTC (rev 2907)
@@ -157,7 +157,11 @@
                                        offset+=rsi->pixelsize;
                                }
                        }
+#ifdef WIN32
+                       _aligned_free(rsi->pixels);
+#else
                        g_free(rsi->pixels);
+#endif
                        rsi->pixels = swap;
                        rsi->w = width;
                        rsi->h = height;
@@ -190,7 +194,11 @@
                                }
                                offset += rsi->pitch*rsi->pixelsize;
                        }
+#ifdef WIN32
+                       _aligned_free(rsi->pixels);
+#else
                        g_free(rsi->pixels);
+#endif
                        rsi->pixels = swap;
                        rsi->w = width;
                        rsi->h = height;


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to