Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/addins/MonoDevelop.GtkCore/libstetic/editor/SelectImageDialog.cs')
-rw-r--r--main/src/addins/MonoDevelop.GtkCore/libstetic/editor/SelectImageDialog.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.GtkCore/libstetic/editor/SelectImageDialog.cs b/main/src/addins/MonoDevelop.GtkCore/libstetic/editor/SelectImageDialog.cs
index 3f64c92369..c4f6330cb6 100644
--- a/main/src/addins/MonoDevelop.GtkCore/libstetic/editor/SelectImageDialog.cs
+++ b/main/src/addins/MonoDevelop.GtkCore/libstetic/editor/SelectImageDialog.cs
@@ -207,13 +207,14 @@ namespace Stetic.Editor
{
try {
Gdk.Pixbuf pix = new Gdk.Pixbuf (stream);
- stream.Close ();
string txt = name + "\n<span foreground='darkgrey' size='x-small'>" + pix.Width + " x " + pix.Height + "</span>";
pix = GetThumbnail (pix);
resourceListStore.AppendValues (pix, txt, name);
resources [name] = pix;
} catch {
// Doesn't look like a valid image. Just ignore it.
+ } finally {
+ stream.Dispose ();
}
}