mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 15:25:59 +03:00
[PR #19] [MERGED] Behavior Consistency and Memory Leaks #938
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#938
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/quasar/Quasar/pull/19
Author: @yankejustin
Created: 3/16/2015
Status: ✅ Merged
Merged: 3/17/2015
Merged by: @MaxXor
Base:
master← Head:master📝 Commits (3)
c6c1cb2Improved Behavior0f0cf6eMemory Leak fixes79588d4Dispose of the stream📊 Changes
4 files changed (+146 additions, -91 deletions)
View changed files
📝
Client/Core/Commands/CommandHandler.cs(+43 -33)📝
Client/Core/Information/GeoIP.cs(+22 -14)📝
Client/Core/SystemCore.cs(+80 -44)📝
Server/Core/ProtoBuf/ProtoWriter.cs(+1 -0)📄 Description
Added a few try-finally blocks to make sure that, even if an exception is thrown, behavior remains more consistent.
Also added a few using blocks to make sure that, if the method returns or an exception is thrown, we can avoid a memory leak. (Common in cases where dispose is called at the bottom of a try-catch block... If an exception was thrown, it wouldn't reach the dispose call).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.