f-spot r4255 - in trunk: . src/Editors
- From: rubenv svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4255 - in trunk: . src/Editors
- Date: Wed, 13 Aug 2008 21:16:35 +0000 (UTC)
Author: rubenv
Date: Wed Aug 13 21:16:35 2008
New Revision: 4255
URL: http://svn.gnome.org/viewvc/f-spot?rev=4255&view=rev
Log:
2008-08-13 Ruben Vermeersch <ruben savanne be>
* src/Editors/Editor.cs: Be sure to free the old preview.
Modified:
trunk/ChangeLog
trunk/src/Editors/Editor.cs
Modified: trunk/src/Editors/Editor.cs
==============================================================================
--- trunk/src/Editors/Editor.cs (original)
+++ trunk/src/Editors/Editor.cs Wed Aug 13 21:16:35 2008
@@ -169,16 +169,24 @@
original = State.PhotoImageView.Pixbuf;
}
+ Pixbuf old_preview = null;
if (preview == null) {
int width, height;
CalcPreviewSize (original, out width, out height);
preview = original.ScaleSimple (width, height, InterpType.Nearest);
+ } else {
+ // We're updating a previous preview
+ old_preview = State.PhotoImageView.Pixbuf;
}
Pixbuf previewed = ProcessFast (preview, null);
State.PhotoImageView.Pixbuf = previewed;
State.PhotoImageView.ZoomFit (false);
MainWindow.Toplevel.InfoBox.UpdateHistogram (previewed);
+
+ if (old_preview != null) {
+ old_preview.Dispose ();
+ }
}
private void CalcPreviewSize (Pixbuf input, out int width, out int height) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]